Re:Dotfile Madness
by avsteele on Sunday October 23, 2022 @10:52PM
(#33312507)
When using .Net 6 I use
in Windows this maps to
An in Linux to
so it is configured well
[ Parent
| on HN ]
I'm not sure I'd call that configured well. On Linux, share is supposed to contain static data used by the app, not the changing configuration that normally goes into appdata on Windows. For config the equivalent should be ~/.config/appname
He's getting the wrong folder on Windows too because that's what he's requesting when passing in SpecialFolder.LocalApplicationData. SpecialFolder.ApplicationData returns %USERPROFILE%\AppData\Roaming on Windows and ~/.config on Linux.