mackup icon indicating copy to clipboard operation
mackup copied to clipboard

Follow the XDG spec for configuration

Open goranmoomin opened this issue 6 years ago • 5 comments

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 avatar Feb 03 '19 10:02 goranmoomin

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...).

goranmoomin avatar Feb 03 '19 10:02 goranmoomin

This is a good idea.

lra avatar Feb 03 '19 18:02 lra

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

treee111 avatar May 09 '21 20:05 treee111

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

NorthIsUp avatar Feb 07 '24 22:02 NorthIsUp

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

con-f-use avatar Feb 24 '24 17:02 con-f-use