-
Notifications
You must be signed in to change notification settings - Fork 163
Support XDG_CONFIG_HOME for config file #247
Description
The XDG Base Directory Specification is a widely used setup for applications to store their files. It allows for a clean home folder and a setup that is also supported by many notable open-source projects such as: git, gtk, fish, emacs, curl, dconf, nano, neovim, pylint, pip, poetry, ruby, systemd, tmux, vim, virtualbox, vlc, and many others.
Having the program first check for the config file in ${XDG_CONFIG_HOME}/grc/grc.conf if XDG_CONFIG_HOME is set (with a different name for the file grc.conf if you like), then in ~/.config/grc/grc.conf, and then in the other folders would help this program match expectations many users have for compatibility with this widely accepted specification. Or even checking ~/.grc first but including checks for the above files if ~/.grc is not found could still be supportive of this specification and (in my opinion) improve the project.