diff options
| author | allusive-dev <[email protected]> | 2023-11-08 11:11:32 +1100 |
|---|---|---|
| committer | allusive-dev <[email protected]> | 2023-11-08 11:11:32 +1100 |
| commit | f22c70e267047d4b10b4b37f2ce6b08c10a12ff4 (patch) | |
| tree | a13ff57e2c220d202270d51716f666ebef72c51c /src | |
| parent | updated sample config (diff) | |
| download | compfy-f22c70e267047d4b10b4b37f2ce6b08c10a12ff4.tar.xz compfy-f22c70e267047d4b10b4b37f2ce6b08c10a12ff4.zip | |
patched crashing without a Display Manager
Diffstat (limited to 'src')
| -rw-r--r-- | src/config_libconfig.c | 2 | ||||
| -rw-r--r-- | src/wm_check.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/config_libconfig.c b/src/config_libconfig.c index 1c765fa..7661743 100644 --- a/src/config_libconfig.c +++ b/src/config_libconfig.c @@ -477,6 +477,8 @@ char *parse_config_libconfig(options_t *opt, const char *config_file, bool *shad log_warn("Looks like you are using HerbstluftWM. Applying Patches"); } else if (strcmp(wmNotice, "dwm") == 0) { log_warn("Looks like you are using DWM. Applying Patches"); + } else if (strcmp(wmNotice, "NULL") == 0) { + log_warn("If you are seeing this error it probably means you are not using a Display Manager so your WM cannot be read. See Issue #25 on GitHub"); } else { log_warn("Looks like your WM, %s does not have any patches avaliable. This is not an Error.", wmNotice); } diff --git a/src/wm_check.c b/src/wm_check.c index 5e153f8..c82389f 100644 --- a/src/wm_check.c +++ b/src/wm_check.c @@ -5,7 +5,7 @@ const char *checkWindowManager() { char *desktopSession = getenv("DESKTOP_SESSION"); if (desktopSession == NULL) { - return "Not Found"; + return "NULL"; } else { if (strstr(desktopSession, "xmonad") != NULL) { return "xmonad"; @@ -16,7 +16,7 @@ const char *checkWindowManager() { } else if (strstr(desktopSession, "dwm") != NULL) { return "dwm"; } else { - return desktopSession; + return "notFound"; } } }
\ No newline at end of file |