XDG_DATA_HOME seems strange for MacOS
#150
martin-braun
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
You set it to
~/Library/Application Supporton MacOS. From my own experience, all MacOS Applications, such as Cocoa apps, use this directory, but most of the CLI tools use~/.local/shareby default. This is what I observed using Unix-tools without XDG variables set over the years, so I think it should remain~/.local/share, because anything that want's to read XDG variables, is asking for some universal Unix path.To me it makes sense to keep those things separated.
I agree though, I'm looking through this through the environment CLI lens, this is a Go package. If Go is used to package a traditional MacOS application, it makes sense.
The same applies for
CONFIG. ForXDG_CACHE_DIRthough, I kinda agree it's better to set it to$HOME/Libraryso unimportant files can reside in a single location, with the assumption that tools will follow the XDG specification.Beta Was this translation helpful? Give feedback.
All reactions