mirror of
https://github.com/artizirk/wdisplays.git
synced 2026-10-03 12:55:42 +03:00
Treat an empty WDISPLAYS_KANSHI_CONFIG as unset
This commit is contained in:
+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