WM (Linux): fixes version reporting for niri WM (#2218)

Signed-off-by: butteronarchbtw <[email protected]>
This commit is contained in:
butteronarchbtw authored and GitHub committed 2026-03-07 23:29:08 +08:00
1 parent f781f8d9ea
commit 22fa9b51e8
1 file changed
+3 -2
+3 -2
View File
@@ -169,9 +169,10 @@ static const char* getNiri(FFstrbuf* result)
"--version",
NULL
}) == NULL)
{ // niri 25.11 (b35bcae)
{ // niri 25.11 (commit b35bcae)
ffStrbufSubstrAfterFirstC(result, ' ');
ffStrbufSubstrBeforeLastC(result, ' ');
ffStrbufSubstrBeforeLastC(result, '(');
ffStrbufTrimRightSpace(result);
return NULL;
}