From 22fa9b51e8c098ca209ca5246e8bce6cb11fc37c Mon Sep 17 00:00:00 2001 From: butteronarchbtw <152636161+butteronarchbtw@users.noreply.github.com> Date: Sat, 7 Mar 2026 16:29:08 +0100 Subject: [PATCH] WM (Linux): fixes version reporting for niri WM (#2218) Signed-off-by: butteronarchbtw <152636161+butteronarchbtw@users.noreply.github.com> --- src/detection/wm/wm_linux.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/detection/wm/wm_linux.c b/src/detection/wm/wm_linux.c index 2547c1f63..b3054fe6a 100644 --- a/src/detection/wm/wm_linux.c +++ b/src/detection/wm/wm_linux.c @@ -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; }