Skip to content

Support XDG_CONFIG_HOME for config file #247

@slacksystem

Description

@slacksystem

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions