From 8509f9705476d6e29d171a7729c44301ffc87b26 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sun, 6 Apr 2025 17:21:32 +0800 Subject: [PATCH] WM (Linux): remove `v` from Hyprland version --- src/detection/wm/wm_linux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/detection/wm/wm_linux.c b/src/detection/wm/wm_linux.c index 42c205dce..60ff5a3b8 100644 --- a/src/detection/wm/wm_linux.c +++ b/src/detection/wm/wm_linux.c @@ -38,6 +38,7 @@ static const char* getHyprland(FFstrbuf* result) { ffStrbufSubstrAfterFirstC(result, '"'); ffStrbufSubstrBeforeFirstC(result, '"'); + ffStrbufTrimLeft(result, 'v'); FF_DEBUG("Extracted version from version.h: %s", result->chars); return NULL; }