]> git.sur5r.net Git - i3/i3/blobdiff - libi3/get_config_path.c
Merge pull request #3172 from klorax/patch-1
[i3/i3] / libi3 / get_config_path.c
index bad75c4dd87d4d6f245fc0f3d243589983c18110..efece5cde792f44949423897983445a033865dd1 100644 (file)
@@ -6,6 +6,7 @@
  *
  */
 #include "libi3.h"
+
 #include <stdlib.h>
 #include <string.h>
 #include <sys/stat.h>
@@ -70,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, ":");