mirror of
https://github.com/swaywm/sway.git
synced 2024-11-25 17:31:28 +00:00
swaynag: fix XDG_CONFIG_HOME handling
This commit is contained in:
parent
695948e689
commit
07f4c1e3a9
|
@ -305,7 +305,7 @@ char *swaynag_get_config_path(void) {
|
||||||
};
|
};
|
||||||
|
|
||||||
char *config_home = getenv("XDG_CONFIG_HOME");
|
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";
|
config_paths[1] = "$HOME/.config/swaynag/config";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue