-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
macOS: do not use ~/Library/Preferences #53
Comments
Hi @divVerent I'm not sure I understand the issue. |
I think I see where I am wrong. The wrong directory ~/Library/Preferences is in XDG_CONFIG_DIRS https://github.com/adrg/xdg/blob/master/paths_darwin.go#L30, but not in XDG_CONFIG_HOME https://github.com/adrg/xdg/blob/master/paths_darwin.go#L28. So that's still wrong, but basically has zero impact as XDG_CONFIG_DIRS is only for reading, not writing. Feel free to close, although it'd be nice to have a code comment explaining why the plist directories are in there. |
As the Apple developer guide states, files in the |
@adrg I understand this has already been closed, but I ran across this because I was wondering why lazygit wasn't able to find my config in I was looking at contributing to LazyGit to add support for I'd be be happy to look at implementing that here if there's interest (and if I find the time!) |
@BlakeWilliams I think adding I think I'll make this change and include it in the next release, which is this week as I already had one planned. |
~/Library/Preferences is reserved for .plist files - one should never create application-specific subdirectories in there, but each application is supposed to just have ONE .plist file in there, named using its bundle ID.
This differs from XDG_CONFIG_HOME as that one expects per-app directories.
See also:
Instead, XDG_CONFIG_HOME should be ~/Library/Application Support, too.
The text was updated successfully, but these errors were encountered: