macOS `user_config_dir` goes against OS guidelines
See original GitHub issueconfig_dir
points to ~/Library/Preferences
on macOS:
https://github.com/platformdirs/platformdirs/blob/2e225082877dd83329594933a69301b8c5b9246e/src/platformdirs/macos.py#L27-L34
This goes against macOS guidelines:
| 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 |
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:13 (5 by maintainers)
Top Results From Across the Web
os - Go Packages
UserHomeDir returns the current user's home directory. On Unix, including macOS, it returns the $HOME environment variable. On Windows, it returns %USERPROFILE% ...
Read more >proposal: os: add UserConfigDir · Issue #29960 · golang/go
UserCacheDir in #22536, and 1.12 is adding os.UserHomeDir in #26463. ... I don't know how I feel about $HOME/Library/Preferences on macOS.
Read more >file, err - - The Go Programming Language
12 // 13 // The os interface is intended to be uniform across all operating systems. ... operations on a File may be...
Read more >Installing Go - Play with Go
Get started with Go. Installing Go. Note: this guide is running on Linux. For Mac or Windows steps, see the official Download and...
Read more >macos - What is standard for OS X filesystem? e.g. /opt/ vs. /usr
Is there a manual or guide to what all of the built-in directories should be used for? Like what is /home/, or /net/?....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
New major release?
The defaults system is a database like the Windows Registry. There are pypi packages that let you interact with it, but I imagine it’s probably out of scope for this package to provide an API to the defaults database.
The docs state you “should never create files in this directory yourself” and that the
Library/Application Support
can include configuration files. TheWhere You Should Put Your App’s Files
section does not mention thePreferences
folder at all - it only says thatApplication Support
can include configuration files.The
NSUserDefaults
docs also has a warning about accessing it directly:I hope that clears it up