3 ms·
When using .Net 6 I use Environment.GetFolderPath( SpecialFolder.LocalApplicationData) in Windows this maps to ~/AppData/Local An in Linux to ~/.loca
by avsteele 4y ago
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
- viraptor 4y agoI'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
- ziml77 4y agoHe'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.