Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow XDG Base Dir Spec #285

Open
alichtman opened this issue Mar 25, 2020 · 2 comments · May be fixed by #344
Open

Follow XDG Base Dir Spec #285

alichtman opened this issue Mar 25, 2020 · 2 comments · May be fixed by #344

Comments

@alichtman
Copy link

alichtman commented Mar 25, 2020

It would be great if this followed the XDG Base Dir Spec instead of dumping the config files in $HOME.

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

$XDG_CONFIG_HOME/vimgolf/config should be the default home of the config, and the leftover data should go in $XDG_CACHE_HOME/vimgolf/put/*

I believe all these changes should be made in lib/vimgolf/lib/vimgolf/config.rb

yochem added a commit to yochem/vimgolf that referenced this issue Apr 11, 2022
Closes igrigorik#285.

Support the XDG base directory specification
(https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html)
by moving the following files:

$HOME/.vimgolf/config.yaml --> {$XDG_CONFIG_HOME OR $HOME/.config}/vimgolf/config.yaml
$HOME/.vimgolf/put/* --> {$XDG_CACHE_HOME OR $HOME/.cache}/vimgolf/*

If the old directory (~/.vimgolf) exists, grab the key from there,
remove ~/.vimgolf and create the two xdg directories from above.
@yochem yochem linked a pull request Apr 11, 2022 that will close this issue
@yochem
Copy link

yochem commented Apr 11, 2022

I've written a PR for this. Please test or review it if you want :)

@anuramat
Copy link

hi, any movement on this? 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@alichtman @yochem @anuramat and others