Skip to content

Search in sysconfdir if there is no config in $XDG_CONFIG_DIRS

Pascal Wittmann requested to merge pSub/Surfraw:master into master

Currently the search for the global configuration file returns nothing if $XDG_CONFIG_DIRS is set and there is no surfraw configuration file. This is confusing as the error message says

"couldn't find global config in @sysconfdir@/xdg/surfraw/conf or $XDG_CONFIG_DIRS"

Indicating it searched for the configuration in $XDG_CONFIG_DIRS and sysconfdir. With this patch it will continue to search in sysconfdir if there was no configuration file in $XDG_CONFIG_DIRS.

Merge request reports