-
Notifications
You must be signed in to change notification settings - Fork 38
Description
Using Unity Hub it is easy to define an alternate install path for the Unity Editors. After some digging I found that Unity Hub stores that alternate install path in a file called secondaryInstallPath.json. On macOS it is located in ~/Library/Application Support/UnityHub (no clue about Windows or Linux).
The file content, although named .json, is just a string:
"/Applications/CustomUnityDirectory/Editors"
To make it even easier for people to use the Patcher we could read that file and check for Unity Editors in that location in addition to the default one.
Right now the Patcher is quite optimistic when scanning the installation Directory and assumes all sub-directories are Unity Editors, this most likely will break if checking the alternate install paths, since people might just define /Applications or C:\Programm Files.
So the Todos would be:
- Figure out where the
secondaryInstallPath.jsonfile is located on Windows and Linux. - Add Code to read the file and check that location for Unity Editors.
- Add Code to detect if a directory contains an Unity Executable before adding it to the list of possible Editors which could be patched.
Do you have any Feedback on this?