Ravbug / UnityHubNative

A native alternative to the heavy Electron Unity Hub, written in C++
Other
359 stars 22 forks source link

Prevent the bloated official UnityHub from launching automatically? #28

Open joethephish opened 1 year ago

joethephish commented 1 year ago

I suspect this may be something that can't be controlled, but I find that what happens is:

I guess this is something on the Unity side, I don't suppose there is anything we can do to prevent it? (I guess I could just delete it! But I'd like to keep it around just in case...)

Ravbug commented 1 year ago

I am not aware of any way to prevent the official hub from launching other than by deleting it. If you (or anyone else) learns of a way, please let me know.

runevision commented 1 year ago

I deleted the official hub which works nicely for launching projects without it opening, but unfortunately this seems to make it impossible to use the Asset Store. When I open the Asset Store and click on the My Assets button I get the dialog:

Install Unity Hub You must install the Unity Hub to sign in and use Unity services. [Later] [Install]

It might be worth noting in the feature list on the readme page that "Manage Unity licenses" does not imply that one can sign in and use services such as the Asset Store.

pioj commented 1 year ago

Well, Unity probably makes use of the Hub to fetch the user account's session, in order for the Editor to subscribe the packageManager/AssetStore tab later.

but, having the Unity Staff habits in mind, I suspect that data to be located in a file or a Registry key. It's only a matter of locating it and use it.

I don't think it would be a good idea to get ride of UnityHub completely, thus encouraging the Staff to eventually come with new ways to obfuscate this data into your computer. Just run HubNative as a complement is good enough.

unitycoder commented 1 year ago

i'm interested on this also, found out that if you create special IPC port (same name as hub uses), then Editor wont launch hub (but you are then logged out too).. https://github.com/unitycoder/UnityLauncherPro/issues/95#issuecomment-1295292514

still chasing it, on how to reply for unity editor, from your dummy IPC port, with the correct authorization-code..

One workaround is also temporarily rename hub.exe, so its easier to enable it back when needed (no need to install/uninstall)