-
Notifications
You must be signed in to change notification settings - Fork 258
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
Non-standard macOS folder locations #1383
Comments
Hi @probablykasper, do you happen to have a link to any specific OS guidelines about apps? By default, you're correct that we store in export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH" Updating the first of those lines to point somewhere else should allow Volta to work out of any other directory that you want to use. |
Yes, there's the File System Basics article: https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html#//apple_ref/doc/uid/TP40010672-CH2-SW1 And the macOS Library Directory Details article: https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html
Thanks for letting me know !! :D |
This comment was marked as resolved.
This comment was marked as resolved.
See also volta-cli/rfcs#12 |
It would be relatively straightforward to use directories (referenced on the RFC mentioned immediately above) in place of the |
Maybe check out etcetera? Some tools that depend on etcetera specifically include fd, helix editor, tokei, navi, sqlx[-postgres], topgrade, vivid, and trippy. (I'm not affiliated with any of these projects.) A ton of Mac users want the option to set their XDG variables to override the usual locations, and the directories maintainer(s) are dead-set against supporting that, despite how many people want it and how common it is in practice. A few tools I use that honor XDG variables on Mac include curl, git, fd, nvim, sqlite3, Homebrew, and spaceship-prompt...so you'd be in good company 😊. It looks like etcetera is flexible enough to work with whichever strategy you ultimately decide on using their convenience functions, so even if you weren't sure about the XDG strategy for Mac yet, it would make it easier to flip the switch if you changed your minds... |
+1 on the XDG compliance. It's always requested by macOS users everywhere - I come from Python and always find a lot feature requests about that. Most of binaries support those out of the box (tmux, neovim...). |
Volta creates a folder in the user's home folder, which goes against OS guidelines. I'm not a huge fan of this because it essentially results in data being stored in random locations, and things like cache clogging up my backups.
I'd recommend at least storing cache in
~/Library/Caches
. If it's undesirable to store to use the~/Library/Application Support
for the other stuff, I'd at least suggest following the XDG defaults of using folders like~/.config
.The text was updated successfully, but these errors were encountered: