mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-12 22:40:54 +01:00
WM (Linux): don't crash if no wm is detected
This commit is contained in:
1 parent
89e4403cc8
commit
f373e07847
1 file changed
+4
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user