alexandrehtrb / Pororoca

An API testing tool with support for HTTP/2 and HTTP/3. Alternative to Postman.
https://pororoca.io
Other
500 stars 38 forks source link

Migrate user data folder for MacOSX #66

Closed alexandrehtrb closed 10 months ago

alexandrehtrb commented 10 months ago

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.

alexandrehtrb commented 10 months ago

Will be included in the next release