-
-
Notifications
You must be signed in to change notification settings - Fork 78
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_*
spec even on macos
#76
Comments
As for many Rust projects, I use the directories-next crate to get those directories. I'd rather not try to code myself this logic or add another fork of the xdg related code. Can you have a look at this crate to see whether they would be willing to do the change, or accept a PR ? |
I'll ask there, sorry for the noise |
Sorry I wasn't clear. Your issue is perfectly valid. I'd just prefer you to check there's no solution at the directories-next side before we look for one in bacon. |
Related: xdg-rs/dirs#45 |
If there's no progress there, we should probably create a small wrapper crate for directories-next handling that But why has there been no PR already ? |
Cause there is no solution, how the lib would decide if it must follow XDG or mac convention on a mac ? They need to decide what to do first. The current behaviour is correct in my eye. |
Another entry point in the API ? Something like a new type, |
An option to force a specific convention feel right. |
Well, my PR on |
I was more thinking an option on bacon, bacon would either take the default or use the one the user asked. It would require something like |
At the very least, |
Something easier to do would be to support a |
(also, evaluations of alternate crates, eg https://docs.rs/etcetera/latest/etcetera/ are welcome) |
What would you want the behavior to be on macOS if a
If both exist, preferring |
It looks like we have several locations which makes sense, one of them prefered. It's compatible with the 2 problems a program have:
A good API should thus return an ordered set of locations. |
First, thanks for
bacon
, I have been trying it out today and its very cool !bacon --prefs
always puts its config file the default path for macOS and in$HOME/.config/bacon/
on Linux. I would for it to respect theXDG_CONFIG_HOME
env var on both (especially on macOS), it makes it very easy to then add it to a git repos for dotfiles.The text was updated successfully, but these errors were encountered: