xyb3rt / sxiv

Simple X Image Viewer
GNU General Public License v2.0
1.82k stars 261 forks source link

Use XDG_CONFIG_DIRS too #420

Open jluttine opened 4 years ago

jluttine commented 4 years ago

Currently, sxiv/exec/... files are searched under XDG_CONFIG_HOME directory: https://github.com/muennich/sxiv/blob/df35cdcd2d81e7232905cb46c8fd3a3d046d9b1b/main.c#L911

I'd like to suggest to use also XDG_CONFIG_DIRS if the file isn't found under XDG_CONFIG_HOME. This would enable, for instance, system-wide or desktop-environment specific defaults for those files.