baton icon indicating copy to clipboard operation
baton copied to clipboard

Follow XDG Base Directory for cfgFile

Open Ratakor opened this issue 6 months ago • 1 comments

According to the XDG Base Directory Specification we should check the XDG_CONFIG_HOME environment variable before assuming that it is $HOME/.config. Thus we should check this variable then assign cfgFile to it + "/baton.json" or continue with the current behavior if it doesn't exist.

This might be useful for the implementation instead of using homedir.

Ratakor avatar Aug 19 '24 01:08 Ratakor