lra / mackup

Keep your application settings in sync (OS X/Linux)
GNU General Public License v3.0
14.6k stars 932 forks source link

Follow the XDG spec for configuration #1317

Open goranmoomin opened 5 years ago

goranmoomin commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

This is a good idea.

treee111 commented 3 years ago

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

NorthIsUp commented 9 months ago

1987 to have mackup store its own files in XDG compliance

con-f-use commented 8 months ago

https://github.com/lra/mackup/pull/632 for cross-reference https://github.com/lra/mackup/pull/1318, https://github.com/lra/mackup/issues/473