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

Support $XDG_DATA_HOME and $XDG_CONFIG_HOME #185

Open
nbeaver opened this issue Jul 26, 2019 · 0 comments
Open

Support $XDG_DATA_HOME and $XDG_CONFIG_HOME #185

nbeaver opened this issue Jul 26, 2019 · 0 comments

Comments

@nbeaver
Copy link
Contributor

nbeaver commented Jul 26, 2019

nvpy currently defaults to storing config in ~/.nvpy.cfg and notes in ~/.nvpy/.

# later config files overwrite earlier files

It would be tremendously cromulent if nvpy would default to storing config in $XDG_CONFIG_HOME (usually ~/.config/) and notes in $XDG_DATA_HOME (usually ~/.local/share).

There is a helper library called python-xdg, more details here:

https://askubuntu.com/questions/457047/how-can-i-get-the-xdg-default-user-directories-from-python

but if minimizing dependencies is desirable, it would be straightforward to implement the relevant parts of the specification. The FreeDesktop spec is here:

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

@nbeaver nbeaver changed the title Support $XDG_DATA_HOME and $XDG_CONFIG_HOME Support $XDG_DATA_HOME and $XDG_CONFIG_HOME Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants