Skip to content

stack should support XDG_CONFIG_HOME/XDG_DATA_HOME #2775

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

Closed
legrostdg opened this issue Nov 11, 2016 · 2 comments
Closed

stack should support XDG_CONFIG_HOME/XDG_DATA_HOME #2775

legrostdg opened this issue Nov 11, 2016 · 2 comments

Comments

@legrostdg
Copy link

It would be great if stack could use XDG_CONFIG_HOME/XDG_DATA_HOME, and $HOME/.stack as a fallback.
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

@mgsloan
Copy link
Contributor

mgsloan commented Nov 11, 2016

I don't think we want to change this, as it would mean that the stack root would change directories. So the user would be left with an old unused stack root, and a new one.

This may well be more "correct", though. One possible option might be to check for $HOME/.stack first, and if it doesn't exist, also look for $XDG_DATA_HOME/stack, orso.

@mgsloan mgsloan closed this as completed Nov 11, 2016
@damienflament
Copy link

See #4243.

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

3 participants