3 ms·
No just accept that XDG_CONFIG_DIR is not always ~/.config
by pasc1878 1y ago
No just accept that XDG_CONFIG_DIR is not always ~/.config
- freehorse 1y agoWhere did OP said that "XDG_CONFIG_DIR is always ~/.config"? You can of course set it to another directory, if you wish so, and that should be respected.
- pasc1878 1y agoSo set it to ~/Library/Preferences and no one should be complaining - Apple see configs in the correct place and XDG see it correct as well. So why is there a problem?
- chrisweekly 1y agoApple's docs have this to say about ~/Library/Preferences/: This directory contains app-specific preference files. You should not create files in this directory yourself.
- pasc1878 1y agoProvide the whole quote. 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. The system provided interface in XDG apps is the XDG path - the Apple code there implies writiing a GUI app as none of the paths it says are not updated by the App ie no manual updates.