-
Notifications
You must be signed in to change notification settings - Fork 983
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
Respect XDG_DATA_HOME
on macOS if set
#4769
Conversation
In ruff, we're using |
I'm just following the patterns we're using in our other crates here. I don't have context on why not |
Since we're not a GUI application I'm basically down to just move over to XDG entirely too btw. |
I'm planning to move us to XDG entirely for macOS (maybe not for the cache for now, though). How much do we care about backwards-compatibility here given that it's preview-only? If we make it backwards-compatible, we may need to "never upgrade" existing users (since we'd just detect if |
You could just move it if we find it in the old location? That's what I did when I renamed the Python directory. We could make a link? |
Hmm, will there be any absolute references to things in the existing folder? Like paths to interpreters? Not sure... |
Fair, that could be problematic. I guess we "never upgrade" and provide instructions for manual migration? |
Tragic! |
Continuing on in #5806. |
Rather than using
Application Support
for state storage, we useXDG_DATA_HOME
if it is set. This feels like a reasonable compromise respecting the OS defaults while allowing users to opt-in to XDG.Closes #4411
e.g.