mirror of
https://github.com/artizirk/wdisplays.git
synced 2026-10-23 18:24:56 +03:00
Treat an empty WDISPLAYS_KANSHI_CONFIG as unset
This commit is contained in:
1 parent
85c801526b
commit
e37e313b80
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user