3 ms·
Even within ~/Library, there is organization. In the lists below, $app is either the application name or the application id (e.g., `lazygit` or `com.foo.bar`).
by halostatue 3y ago
Even within ~/Library, there is organization. In the lists below, $app is either the application name or the application id (e.g., `lazygit` or `com.foo.bar`).
- ~/Library/Application\ Support/$app - sometimes used for configuration, sometimes used for support data, sometimes for other things entirely (including caches, but that is the wrong place); probably similar to $XDG_DATA_HOME.
- ~/Library/Caches/$app - equivalent to $XDG_CACHE_HOME.
- ~/Library/Logs/$app - no direct equivalent, but ~/.local/var/logs.
- ~/Library/Preferences/$app - mostly $XDG_CONFIG_HOME, but $app in this case could simply be a single plist if that's all you need.
I mostly find myself annoyed when command-line apps use those directories, because it makes shared configurations between Linux and macOS that much harder, even with chezmoi. At the same time, respecting that over the non-native XDG…is what this article is about, no?
Not that the author gives any time to macOS except an ignorant swipe at macOS windowing (you don't like it and you're not used to it; that doesn't make it wrong).