WMDE: detect Sway by env variables

This commit is contained in:
Carter Li
2025-01-08 08:50:34 +08:00
parent c4ee606955
commit 6577884417
+3
View File
@@ -62,6 +62,9 @@ static const char* parseEnv(void)
if(getenv("HYPRLAND_CMD") != NULL)
return "Hyprland";
if(getenv("SWAYSOCK") != NULL)
return "Sway";
#ifdef __linux__
if(
getenv("WAYLAND_DISPLAY") != NULL &&