Open goranmoomin opened 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...).
This is a good idea.
Ist done, PR's merged and can be closed?
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
.