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

Follow the XDG spec for configuration #1317

Open
goranmoomin opened this issue Feb 3, 2019 · 5 comments
Open

Follow the XDG spec for configuration #1317

goranmoomin opened this issue Feb 3, 2019 · 5 comments
Labels

Comments

@goranmoomin
Copy link

Currently the location of configuration file for mackup is ~/.mackup.cfg, which clutters the $HOME directory. I believe that mackup should closely follow the XDG specification (Summary) and allow users to place configuration files to $XDG_CONFIG_HOME/mackup/config.

@goranmoomin
Copy link
Author

This can be made backwards compatible by checking the existence of $XDG_CONFIG_HOME/mackup/config(note that if $XDG_CONFIG_HOME is not set, it fallbacks to ~/.config, so we should also check the existence of ~/.config/mackup/config, and if nonexistent, falling back to ~/.mackup.cfg, while showing a deprecation notice(or not...).

@lra lra added the TODO label Feb 3, 2019
@lra
Copy link
Owner

lra commented Feb 3, 2019

This is a good idea.

@treee111
Copy link
Contributor

treee111 commented May 9, 2021

Ist done, PR's merged and can be closed?

@NorthIsUp
Copy link

#1987 to have mackup store its own files in XDG compliance

@con-f-use
Copy link

con-f-use commented Feb 24, 2024

#632 for cross-reference #1318, #473

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

Successfully merging a pull request may close this issue.

5 participants