diff --git a/src/detection/wm/wm_linux.c b/src/detection/wm/wm_linux.c index c5d95dc75..821ee7973 100644 --- a/src/detection/wm/wm_linux.c +++ b/src/detection/wm/wm_linux.c @@ -22,9 +22,13 @@ static void getHyprland(FFstrbuf* result, FF_MAYBE_UNUSED FFWMOptions* options) const char* ffDetectWMVersion(const FFstrbuf* wmName, FFstrbuf* result, FFWMOptions* options) { + if (!wmName) + return "No WM detected"; + if (ffStrbufEqualS(wmName, FF_WM_PRETTY_HYPRLAND)) getHyprland(result, options); else return "Unsupported WM"; + return NULL; }