Skip to content

Commit 22fa9b5

Browse files
WM (Linux): fixes version reporting for niri WM (#2218)
Signed-off-by: butteronarchbtw <152636161+butteronarchbtw@users.noreply.github.com>
1 parent f781f8d commit 22fa9b5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/detection/wm/wm_linux.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,10 @@ static const char* getNiri(FFstrbuf* result)
169169
"--version",
170170
NULL
171171
}) == NULL)
172-
{ // niri 25.11 (b35bcae)
172+
{ // niri 25.11 (commit b35bcae)
173173
ffStrbufSubstrAfterFirstC(result, ' ');
174-
ffStrbufSubstrBeforeLastC(result, ' ');
174+
ffStrbufSubstrBeforeLastC(result, '(');
175+
ffStrbufTrimRightSpace(result);
175176
return NULL;
176177
}
177178

0 commit comments

Comments
 (0)