-
Notifications
You must be signed in to change notification settings - Fork 498
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 directory functions do not respect XDG variables on macOS #2434
Comments
Changing the behavior of the existing functions would break |
Yeah that's sound good, we should still update the documentation for the normal |
Well, dirs is used for other features like global justfile locating: Lines 14 to 19 in 4f31853
But since that wouldn't affect the backwards compatability of the justfiles themselves would that be a change that could be made at some point as well? |
Regarding #2439, I see the benefit, but it seems unfortunate to add a bunch more functions that are very close to existing functions. An alternative option would be to add a setting, like |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I'm going to hide as off topic all comments related to what I'm actually not sure If users want to use the value of the In any case, the documentation should be changed to reflect what the current functions actually do, which is provide paths to system directories. |
Updated the readme in #2535. |
I think since I think it's not a bad situation that the functions always return system-specified locations, and users that want the XDG locations can use If we want, we could additionally document the names of the corresponding |
Due to long standing difficulties with (a/the) maintainer of dirs-rs, they refuse to recognize XDG environment variables explicitly defined by the user on macOS: dirs-dev/directories-rs#47.
config_directory()
will always go to/Users/<username>/Library/Application Support
on macOS, even if you have setXDG_CONFIG_HOME
. I would suggest using https://github.com/lunacookies/etcetera instead, though there may be other alternatives that also respect user preferences.The text was updated successfully, but these errors were encountered: