Live data from Hacker News

macOS dotfiles should not go in –/Library/Application Support

becca.ooo

221–223 of 223 posts

Re: macOS dotfiles should not go in –/Library/Application Support

#221
post #202
post #154

Earlier quoted context omitted.

The xdg vars only control the location. There’s no var to control that xdg should be used. macOS has a canonical approach, which some tools choose to ignore. I want a flag to make that ignorance correct

I know, but if XDG vars controlling the location exist then obviously 'use XDG' is desired.

No. There are many situations where these are set where that’s not true.

Re: macOS dotfiles should not go in –/Library/Application Support

#222

~/. for Darwin, ~/Library/Application Support for macOS. That simple.

That sounds like a good distinction. What are CLI tools that work under macOS but not under Darwin? Shortcuts like `code` or `pycharm` that open graphical apps? CLI tools that come bundled with macOS? Yeah these could use the latter.

CLI shortcuts are bridges from Darwin to macOS. I agree, ~/Library/Application Support.

Re: macOS dotfiles should not go in –/Library/Application Support

#223
post #21
post #18

Earlier quoted context omitted.

(I maintain a fairly popular TUI library), and as a CLI/TUI user on macOS, I dislike the App Support folder a lot. But even though I dislike it, I'd expect that apps for mac should put their files there because the XDG spec doesn't apply to macOS. It's the wrong place, but the technically correct one. The right thing to do is fix the spec, and then fix the apps / libs to follow that. I wrote a top level thread that t…

How does the XDG spec not apply to macOS, and what "fix" are you proposing? https://specifications.freedesktop.org/basedir-spec/latest/ https://www.theregister.com/2024/10/11/macos_15_is_unix/ > Probably another environment variable Having any of the existing XDG_* environment variables set is an incredibly-clear indication that the user wants the XDG spec followed.

The XDG environment variables only apply to systems where the XDG spec is defined to be in place. You need one extra flag for defining that to be true. Given that macOS isn't a place where XDG is applicable, suddenly making it applicable would break every place that assumes that it's not applicable (e.g. I no longer have configuration for some utility that uses the pre-change value of the AppSupport folders.
Post reply on HN