Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wish: support for XDG_HOME_STANDARD-- put config files under ~/.config #124

Open
markstos opened this issue Dec 23, 2017 · 0 comments
Open

Comments

@markstos
Copy link

Thanks for Teamocil.

According to the Free Dektop XDG Base Directory Specification, ~/.config/ should be used for personal config files. From the spec:

$XDG_CONFIG_HOME defines the base directory relative to which user specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used

systemd also supports the standard, and documents in man file-hierarchy under HOME DIRECTORY:

~/.config
    Application configuration and state... If an application finds $XDG_CONFIG_HOME set, it should use the directory specified in it instead of this directory.

As a user, I appreciate having configuration file standardized in the .config directory, with less litter in my top level directory. For example, I can easily specify that all files under ~/.config should be included in a backup, while all files under /.cache (also standardized) don't need to be backed up.

The current location can still be checked as a backup for backwards compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant