From 65778844177556771bdcbcb875f53243e5632728 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Wed, 8 Jan 2025 08:50:34 +0800 Subject: [PATCH] WMDE: detect Sway by env variables --- src/detection/displayserver/linux/wmde.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/detection/displayserver/linux/wmde.c b/src/detection/displayserver/linux/wmde.c index 557be31aa..c8324f789 100644 --- a/src/detection/displayserver/linux/wmde.c +++ b/src/detection/displayserver/linux/wmde.c @@ -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 &&