battery icon indicating copy to clipboard operation
battery copied to clipboard

Support putting config dir in $XDG_CONFIG_HOME

Open twio142 opened this issue 1 year ago • 1 comments

Regarding #208

I just patched where ever $HOME/.battery is found in the code.

Basically it checks whether the env var XDG_CONFIG_HOME is set. If so, set the config dir to $XDG_CONFIG_HOME/battery, otherwise fallback to $HOME/.battery.

Tell me if I'm missing something :)

twio142 avatar Sep 30 '24 09:09 twio142

  1. Wouldn't you rather set the default location to $HOME/.config as stated in the specs at https://specifications.freedesktop.org/basedir-spec/latest/?
  2. XDG_CONFIG_HOME should be ignored in my opinion, if the script is used as setup for another user.

tim25651 avatar Nov 21 '24 20:11 tim25651