alexandrehtrb / Pororoca

An HTTP inspection tool with support for HTTP/2 and HTTP/3. Alternative to Postman.

Home Page:https://pororoca.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Migrate user data folder for MacOSX

alexandrehtrb opened this issue · comments

Today, for Mac OSX, PororocaUserData folder is right next to the application, in Applications folder.

But for Mac OSX, the conventional folder location of app data is:

For preferences: /Users/username/Library/Preferences
For user data: /Users/username/Library/Application Support

https://stackoverflow.com/questions/410013/where-do-osx-applications-typically-store-user-configuration-data

We can use Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) in this case too.

https://github.com/dotnet/runtime/blob/092cbed116fe0c661d40bf8657fbe759020b0cab/src/libraries/System.Private.CoreLib/src/System/Environment.GetFolderPathCore.Unix.cs#L97

Migration needs to move and merge former PororocaUserData folder, from next to application to the Application Support folder.

Will be included in the next release