0x4E4F@lemmy.dbzer0.com to linuxmemes@lemmy.world · 2 days agoPlease use .config 😭lemmy.dbzer0.comimagemessage-square56fedilinkarrow-up1662arrow-down110
arrow-up1652arrow-down1imagePlease use .config 😭lemmy.dbzer0.com0x4E4F@lemmy.dbzer0.com to linuxmemes@lemmy.world · 2 days agomessage-square56fedilink
minus-square2xsaiko@discuss.tchncs.delinkfedilinkarrow-up8·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-squaredan@upvote.aulinkfedilinkarrow-up5·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