LibraryManager icon indicating copy to clipboard operation
LibraryManager copied to clipboard

Revisit LibraryManager folder structure for app data

Open ariellourenco opened this issue 4 years ago • 2 comments

On Windows, applications should not be creating folders/files directly in %USERPROFILE%. The proper location for configuration files is %APPDATA%<vendor><product> and the proper location for cache files is %LOCALAPPDATA%\<vendor>\<product>. Things should only be added to %USERPROFILE% if the user explicitly requests it via a save dialog box.

Please move %USERPROFILE%\.librarymanager to %APPDATA%\librarymanager as the default location. The fact that configuration files should go in %APPDATA% is well documented in Microsoft's OS documentation in a number of places as well as MSDN. Also, in Windows folders should not be named with a . prefix as Windows explorer doesn't allow creation of folders with that name which leads to problems.

related to: microsoft/vscode#3884

ariellourenco avatar Jul 20 '21 16:07 ariellourenco

https://github.com/aspnet/LibraryManager/blob/03883694a47bf3391ef68555cac7f69e8011ac5f/src/LibraryManager/Configuration/Settings.cs#L86-L99

diogocp avatar Sep 02 '21 23:09 diogocp

Should note that the current placement isn't valid on macOS or Linux either. On macOS it should be somewhere under ~/Library, and on Linux it should be in the appropriate XDG directory https://wiki.archlinux.org/title/XDG_Base_Directory

jcotton42 avatar Aug 29 '22 03:08 jcotton42