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

user configurable config file #89

Closed
iandstanley opened this issue Aug 10, 2020 · 3 comments · Fixed by #91
Closed

user configurable config file #89

iandstanley opened this issue Aug 10, 2020 · 3 comments · Fixed by #91

Comments

@iandstanley
Copy link

The problem

creating config and cache directories in $HOME quickly ends up with a cluttered $HOME by the time you have several apps running

I would like to see an option to user define the data/cache directory used

Proposed solution

one newer solution is to check the environment to see if $XDG_CACHE_HOME is defined and if so create a subdirectory under it named after the app and put any cache data there

see

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

Alternative solutions

some developers solve it with an ENV variable pointing to the cache/data/config directories

others have a command line switch to define such a directory

Additional context

thanks for taking the time to read this

@derhuerst
Copy link
Contributor

related: #60

env-paths intends to help the Node.js ecosystem adhere to best practices.

@jaller94 jaller94 self-assigned this Aug 11, 2020
@jaller94
Copy link
Collaborator

jaller94 commented Aug 11, 2020

Sure, if env-paths solves our troubles, I'm going to implement that tonight.

@jaller94
Copy link
Collaborator

Please have a look at #91 and tell me if this fixes your issue.

@jaller94 jaller94 removed their assignment Aug 12, 2020
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.

3 participants