GNOME Bugzilla – Bug 757377
settings.ini is only loaded from first XDG_CONFIG_DIRS entry
Last modified: 2015-10-31 22:16:43 UTC
Created attachment 314510 [details] [review] Respect all directories in XDG_CONFIG_DIRS when loading settings.ini When XDG_CONFIG_DIRS is set to multiple directories, only the settings.ini in the first entry will be loaded. Example: > $ env XDG_CONFIG_DIRS=/foo:/bar strace -e file spacefm 2>&1 | grep -E "(foo)|(bar)" > access("/foo/gtk-3.0/settings.ini", F_OK) = -1 ENOENT (No such file or directory) > access("/foo/gtk-3.0/settings.ini", F_OK) = -1 ENOENT (No such file or directory) > $ env XDG_CONFIG_DIRS=/bar:/foo strace -e file spacefm 2>&1 | grep -E "(foo)|(bar)" > access("/bar/gtk-3.0/settings.ini", F_OK) = -1 ENOENT (No such file or directory) > access("/bar/gtk-3.0/settings.ini", F_OK) = -1 ENOENT (No such file or directory) (Issue should be replicable with any other GTK3 program that loads settings.ini, not just spacefm) A patch that fixes this issue is attached.