Support `XDG_CONFIG_HOME` for config file
Opened this issue · 1 comments
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.
After looking at one of the closed PRs, it seems like maybe this was already implemented? If that is the case, all that is needed is an update to the README (and any other documentation that might need it) as currently the files it lists do not include those recommended by this spec. If updating the docs is all that is needed I'm happy to submit updates to the documentation in a PR.