From e37e313b80038c6979bda298328c030e61b8f5d8 Mon Sep 17 00:00:00 2001 From: Mars-Wave <57585293+Mars-Wave@users.noreply.github.com> Date: Fri, 6 Mar 2026 21:06:53 +0100 Subject: [PATCH] Treat an empty WDISPLAYS_KANSHI_CONFIG as unset --- src/store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store.c b/src/store.c index 27008d5..5a563ed 100644 --- a/src/store.c +++ b/src/store.c @@ -25,7 +25,7 @@ struct kanshi_parser { static char *get_config_path(void) { const char *env_path = g_getenv("WDISPLAYS_KANSHI_CONFIG"); - if (env_path != NULL) { + if (env_path != NULL && env_path[0] != '\0') { return g_strdup(env_path); }