Treat an empty WDISPLAYS_KANSHI_CONFIG as unset

This commit is contained in:
Mars-Wave
2026-03-06 21:06:53 +01:00
parent 85c801526b
commit e37e313b80
+1 -1
View File
@@ -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);
}