Respect SYSCONFDIR when looking for defaut 'xdg' directory

This commit is contained in:
Baptiste Daroussin 2016-11-09 22:34:39 +01:00
parent 86ad867277
commit c602ec7cc2
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ char *get_config_path(const char *override_configpath, bool use_system_paths) {
/* 4: check for $XDG_CONFIG_DIRS/i3/config */ /* 4: check for $XDG_CONFIG_DIRS/i3/config */
if ((xdg_config_dirs = getenv("XDG_CONFIG_DIRS")) == NULL) if ((xdg_config_dirs = getenv("XDG_CONFIG_DIRS")) == NULL)
xdg_config_dirs = "/etc/xdg"; xdg_config_dirs = SYSCONFDIR "/xdg";
char *buf = sstrdup(xdg_config_dirs); char *buf = sstrdup(xdg_config_dirs);
char *tok = strtok(buf, ":"); char *tok = strtok(buf, ":");