Skip to content
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

Store config in correct directory on macOS #314

Closed
deanishe opened this issue Jan 10, 2022 · 1 comment
Closed

Store config in correct directory on macOS #314

deanishe opened this issue Jan 10, 2022 · 1 comment

Comments

@deanishe
Copy link

On macOS, glow creates the directory ~/Library/Preferences/glow/ and stores its config in there.

Applications should never write to ~/Library/Preferences. It's basically the macOS equivalent of the Windows registry, and shouldn't be modified directly:

Contains the user’s preferences. You should never create files in this directory yourself. To get or set preference values, you should always use the NSUserDefaults class or an equivalent system-provided interface.

https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html

glow should store its config either under ~/Library/Application Support/ (the official directory for app-created files on macOS) or better yet under ~/.config/ (POSIX command-line programs are typically expected to follow POSIX conventions, not macOS ones).

@muesli
Copy link
Contributor

muesli commented Jan 11, 2022

Tracked upstream: muesli/go-app-paths#6

Not sure we'll change this at this point tho, if I'm honest.

@muesli muesli closed this as completed Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants