kiteco / issue-tracker

User-reported issues for Kite
https://Kite.com
1.75k stars 136 forks source link

Support XDG for ~/.kite #242

Open yochem opened 4 years ago

yochem commented 4 years ago

It would be nice to see Kite respect the XDG basedir specification. This will make sure users can choose where they want these 'dotfiles'. It also splits config, data and cache. This way, users can for example backup their config and periodically remove the cache. I have these files currently in my kite folder:

installid
kited_has_run
libraries/
logs/
logs/client.log
logs/copilot.log
settings.json
vim-plugin.json

These could be split like this:

XDG Default Files
XDG_CONFIG_HOME ~/.config Maybe settings.json and vim-plugin.json?
XDG_DATA_HOME ~/.local/share kited_has_run, installid and libraries/?
XDG_CACHE_HOME ~/.cache logs/ (these can also go in ~/Library/Logs on MacOS and an equivalent on Linux)

Thank you in advance!

yochem commented 4 years ago

I saw you've added the linux label, could this be implemented for all *nix systems, including MacOS?

melvio commented 3 years ago

Since it has been a year, are there workarounds available for now? Some environment variables would be lovely. That way we can use something like KIT_CONFIG_HOME=~/.config/kite. I could only find these for buildkite https://buildkite.com/docs/pipelines/environment-variables.