]> git.sur5r.net Git - i3/i3/blobdiff - libi3/get_config_path.c
Respect SYSCONFDIR when looking for defaut 'xdg' directory
[i3/i3] / libi3 / get_config_path.c
index c47e6dd8b56775df0039621079c96db43d4a14ad..efece5cde792f44949423897983445a033865dd1 100644 (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 */
     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, ":");