0x4E4F@lemmy.dbzer0.com to linuxmemes@lemmy.world · 2 days agoPlease use .config 😭lemmy.dbzer0.comimagemessage-square53fedilinkarrow-up1646arrow-down110
arrow-up1636arrow-down1imagePlease use .config 😭lemmy.dbzer0.com0x4E4F@lemmy.dbzer0.com to linuxmemes@lemmy.world · 2 days agomessage-square53fedilink
minus-square2xsaiko@discuss.tchncs.delinkfedilinkarrow-up6·1 day 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-squaredanAlinkfedilinkarrow-up3·10 hours 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