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

Signed-off-by: butteronarchbtw <152636161+butteronarchbtw@users.noreply.github.com>
This commit is contained in:
butteronarchbtw
2026-03-07 16:29:08 +01:00
committed by GitHub
parent f781f8d9ea
commit 22fa9b51e8
+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;
}