-
Notifications
You must be signed in to change notification settings - Fork 57
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
XDG Base Directory Specification #338
Comments
While maintaining projects that use the XDG Base Directory Specification, I've not enjoyed the multi-level documentation that goes with it when working across all the Operating Systems (Windows, OS X, FreeBSD, and Linux).
If you're open to writing PRs for it and seeing what people think, I'm open to reviewing it. How does the XDG Base Directory Specification work with Windows users? |
It is absolutely a Linux specific solution. That said, check out how @ActiveState has approached this with their appdirs Python module. They have done the leg work to find all the corresponding directories on Linux, Mac, and Windows for user's data, configuration, and cache.
I think following each OS's standards offers significant benefits over just using
More info: I would love to send a pull request, but I've never written Go before. If the project is interested in going down this path, I can certainly try. |
To be clear, I think we'd be open to reviewing a PR that allows users to set the |
Please consider following the XDG Base Directory Specification. This means that the default configuration directory would change from
~/.rack
to~/.config/rack
, and would be relocatable based on the environment variableXDG_CONFIG_HOME
.If this is not acceptable, please consider letting users override the default location with a custom environment variable, similar to how gnupg (
GNUPGHOME
) or httpie (HTTPIE_CONFIG_DIR
) allow it.The text was updated successfully, but these errors were encountered: