@[email protected] to linuxmemes • 2 days agoPlease use .config 😭lemmy.dbzer0.comimagemessage-square56fedilinkarrow-up1662arrow-down110
arrow-up1652arrow-down1imagePlease use .config 😭lemmy.dbzer0.com@[email protected] to linuxmemes • 2 days agomessage-square56fedilink
minus-square2xsaikolinkfedilink8•2 days agoOn macOS, the correct thing to use is usually NSUserDefaults API, or - [NSFileManager URLsForDirectory:inDomains:] with NSApplicationSupportDirectory (gives a list of paths to find your config file in, like XDG_CONFIG_DIRS)
minus-square@[email protected]linkfedilink5•1 day agoThanks for the info. It looks like that’s what .NET / C# uses: https://github.com/dotnet/runtime/blob/2b60d82ef3e87876128b7f71922a1b72908b6fcf/src/libraries/System.Private.CoreLib/src/System/Environment.GetFolderPathCore.Unix.cs#L103
On macOS, the correct thing to use is usually NSUserDefaults API, or
- [NSFileManager URLsForDirectory:inDomains:]
with NSApplicationSupportDirectory (gives a list of paths to find your config file in, like XDG_CONFIG_DIRS)Thanks for the info. It looks like that’s what .NET / C# uses: https://github.com/dotnet/runtime/blob/2b60d82ef3e87876128b7f71922a1b72908b6fcf/src/libraries/System.Private.CoreLib/src/System/Environment.GetFolderPathCore.Unix.cs#L103