aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorallusive-dev <[email protected]>2023-11-08 11:17:02 +1100
committerallusive-dev <[email protected]>2023-11-08 11:17:02 +1100
commit1bf6341632c3d79472bf0040fdc656a1c7e85afd (patch)
treefb704a98c589c3da33bf953294e767179a6dbebd /src
parentpatched crashing without a Display Manager (diff)
downloadcompfy-1bf6341632c3d79472bf0040fdc656a1c7e85afd.tar.xz
compfy-1bf6341632c3d79472bf0040fdc656a1c7e85afd.zip
patched crashing again
Diffstat (limited to 'src')
-rw-r--r--src/wm_check.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wm_check.c b/src/wm_check.c
index c82389f..5d9d404 100644
--- a/src/wm_check.c
+++ b/src/wm_check.c
@@ -4,7 +4,7 @@
const char *checkWindowManager() {
char *desktopSession = getenv("DESKTOP_SESSION");
- if (desktopSession == NULL) {
+ if (strlen(desktopSession) == 0) {
return "NULL";
} else {
if (strstr(desktopSession, "xmonad") != NULL) {
@@ -16,7 +16,7 @@ const char *checkWindowManager() {
} else if (strstr(desktopSession, "dwm") != NULL) {
return "dwm";
} else {
- return "notFound";
+ return desktopSession;
}
}
} \ No newline at end of file