diff options
author | emersion <contact@emersion.fr> | 2019-01-19 08:41:18 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-01-19 09:07:08 +0100 |
commit | 07f4c1e3a96f57aa7dcc2ea309a55ab5875b6fda (patch) | |
tree | 231e51ce242cedeb007a758ef8bd73f36be6193c /swaynag | |
parent | 695948e6891e0ec955f1fdc0771303cdaf19d026 (diff) |
swaynag: fix XDG_CONFIG_HOME handling
Diffstat (limited to 'swaynag')
-rw-r--r-- | swaynag/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swaynag/config.c b/swaynag/config.c index b4c22443..e5e940c7 100644 --- a/swaynag/config.c +++ b/swaynag/config.c @@ -305,7 +305,7 @@ char *swaynag_get_config_path(void) { }; char *config_home = getenv("XDG_CONFIG_HOME"); - if (!config_home || *config_home) { + if (!config_home || config_home[0] == '\0') { config_paths[1] = "$HOME/.config/swaynag/config"; } |