From: Baptiste Daroussin Date: Wed, 9 Nov 2016 21:34:39 +0000 (+0100) Subject: Respect SYSCONFDIR when looking for defaut 'xdg' directory X-Git-Tag: 4.14~96^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c602ec7cc2203c03c62439bb3f35a3acfe9e2ed8;p=i3%2Fi3 Respect SYSCONFDIR when looking for defaut 'xdg' directory --- diff --git a/libi3/get_config_path.c b/libi3/get_config_path.c index c47e6dd8..efece5cd 100644 --- a/libi3/get_config_path.c +++ b/libi3/get_config_path.c @@ -71,7 +71,7 @@ char *get_config_path(const char *override_configpath, bool use_system_paths) { /* 4: check for $XDG_CONFIG_DIRS/i3/config */ 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 *tok = strtok(buf, ":");