insanum / gcalcli

Google Calendar Command Line Interface
MIT License
3.31k stars 311 forks source link

Switch to more standard config file location #640

Closed jmetz closed 3 weeks ago

jmetz commented 1 year ago

Instead of home directory dot file for the rc file, would suggest conforming to XDG standard, ie using $XDG_CONFIG_HOME (~/.config) and a folder within that, ie:

$XDG_CONFIG_HOME/gcalcli/config

which will usually resolve to $HOME/.config/gcalcli/config

joshbode commented 1 year ago

The .gcalcli_cache and .gcalcli_oauth could probably go to ${XDG_CACHE_HOME}/gcalcli/{cache,oauth}, also.

Note: ${XDG_CACHE_HOME} usually defaults to ${HOME}/.cache

michaelmhoffman commented 1 year ago

Looks like a good idea. The xdg-base-dirs package supplies these paths in a way that meets the standard.