News for hackers. Stuff that matters.
Re:Dotfile Madness by avsteele on Sunday October 23, 2022 @10:52PM (#33312507)
When using .Net 6 I use

  Environment.GetFolderPath( SpecialFolder.LocalApplicationData)
in Windows this maps to

  ~/AppData/Local
An in Linux to

  ~/.local/share
so it is configured well
Re:Dotfile Madness by viraptor on Sunday October 23, 2022 @11:34PM (#33312702)
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
Re:Dotfile Madness by ziml77 on Monday October 24, 2022 @12:17AM (#33312882)
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.