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

Consider moving home config files to standardized XDG_CONFIG location #844

Closed
brennanfee opened this issue Dec 31, 2020 · 2 comments
Closed

Comments

@brennanfee
Copy link
Contributor

Currently, the dotfiles (.tool-versions file as well as any plugin specific default files - such as .default-gems or .default-npm-packages) all live in the $HOME folder.

Consider moving those to the approved and standardized config location (XDG_CONFIG). Perhaps "$XDG_CONFIG/asdf/" would be an appropriate location with a hard-coded "~/.config/asdf/" as a fallback when XDG_CONFIG is not set. For backward compatibility the tool could futher fall back to the current locations for some time to allow people time to transition.

@Stratus3D
Copy link
Member

Related:

This ticket actually seems like a duplicate of #687, with a more specialized use case (XDG_CONFIG instead of any location). Can I close this ticket @brennanfee and continue discussion on #687 ?

@brennanfee
Copy link
Contributor Author

brennanfee commented Jan 27, 2021

@Stratus3D Yes, feel free to close this ticket. I would STRONGLY encourage that #687 be updated to refer to and use XDG_CONFIG as its implementation. Given that it has become a standard on nearly all Linux distributions and if implemented with a default when NOT set can work equally well on Mac and Windows.

For reference here is the "official" documentation: https://specifications.freedesktop.org/basedir-spec/latest/

More info: https://www.freedesktop.org/wiki/Software/xdg-user-dirs/

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

No branches or pull requests

2 participants