Search Unity

Opening unityhub:// URLs with Unity Hub on Linux

Discussion in 'Unity Hub' started by Cygon4, Sep 17, 2020.

  1. Cygon4

    Cygon4

    Joined:
    Sep 17, 2012
    Posts:
    382
    Hi!

    The download archives contain UnityHub URLs that us Linux users apparently have to use in order to install older Linux versions.

    When I click on the links (leading to, i.e., unityhub://5.6.7f1/e80cc3114ac1), nothing happens.


    I tried registering a custom protocol handler like this:

    > gconftool-2 -s /desktop/gnome/url-handlers/foo/command '/opt/UnityHub/UnityHub.AppImage %s' --type String
    > gconftool-2 -s /desktop/gnome/url-handlers/foo/enabled --type Boolean true


    I added a property called network.protocol-handler.expose.unityhub to my Firefox configuration, but it still complains "The address wasn't understood"


    I called UnityHub.AppImage with different variations of the URL:

    > ./UnityHub.AppImage unityhub://5.6.7f1/e80cc3114ac1
    > ./UnityHub.AppImage 5.6.7f1/e80cc3114ac1
    > ./UnityHub.AppImage e80cc3114ac1

    But this only brings UnityHub into the foreground.
     
  2. chibiskuld

    chibiskuld

    Joined:
    Jan 27, 2018
    Posts:
    4
    > ./UnityHub.AppImage unityhub://5.6.7f1/e80cc3114ac1
    That does work to start a unity hub link download, however, it looks like it's not available for linux for download. You'll need a direct download link from support.
     
    tatsuuuuuuu, timothyaveni and jilleJr like this.
  3. Brett_Ryland

    Brett_Ryland

    Joined:
    Oct 18, 2020
    Posts:
    1
    Using this post as reference https://unix.stackexchange.com/questions/497146/create-a-custom-url-protocol-handler, I was able to get it working by adding a file called
    ~/.local/share/applications/unityhub-handler.desktop
    with contents
    Code (csharp):
    1. [Desktop Entry]
    2. Type=Application
    3. Name=UnityHub Handler
    4. Exec=~/Unity/UnityHub.AppImage %u
    5. StartupNotify=false
    6. MimeType=x-scheme-handler/unityhub;
    (adjust the
    Exec
    line for wherever you've installed UnityHub), then running
    xdg-mime default unityhub-handler.desktop x-scheme-handler/unityhub
    .
     
    sushemsu, frbrz, ArtBIT and 3 others like this.
  4. Duedot43

    Duedot43

    Joined:
    Nov 11, 2020
    Posts:
    1
    just to add to this for flatpak installs you would use this command in terminal
    flatpak run com.unity.UnityHub unityhub://2020.3.7f1/dd97f2c94397
     
  5. frbrz

    frbrz

    Joined:
    May 10, 2016
    Posts:
    76
    xdg-mime default unityhub-handler.desktop x-scheme-handler/unityhub


    Thank you very much !!