Search Unity

No way to activate my unity pro license on Linux.

Discussion in 'Linux' started by tatsuuuuuuu, Jan 11, 2022.

  1. tatsuuuuuuu

    tatsuuuuuuu

    Joined:
    May 12, 2020
    Posts:
    35
    So either on the unity hub or in the editor -> Help -> Manage license

    You need to first log in.

    you click on login which opens up a webpage where you log into your unity account,

    but this is what happens when you're logged in (whether new attempt or that first attempt) :

    https://imgur.com/Y7el1E2

    and open xdg-open does nothing.

    so can this please be fixed? I paid good money and it's been like this for years (this same issue prevents linux users from adequately using unity Archive) and I've now been unable to use my pro version of unity for months.
     
  2. Pino_B

    Pino_B

    Joined:
    Oct 19, 2017
    Posts:
    23
    1- Check if you have the file unityhub.desktop in /usr/share/applications/, if not create it and if you have it already, make sure it has the below entries. In case you can also download my file here

    [Desktop Entry]
    Name=Unity Hub
    Exec=/opt/unityhub/unityhub %U
    Terminal=false
    Type=Application
    Icon=unityhub
    StartupWMClass=unityhub
    Comment=The Official Unity Hub
    Categories=Development;
    TryExec=unityhub
    MimeType=x-scheme-handler/unityhub;


    2- Make sure Exec and TryExec are pointing to the right location; in my case is /opt/unityhub/unityhub

    3- Execute via terminal the following. With this command, Firefox will display xdg-open window and hopefully, you will be finally able to log in.


    xdg-mime default unityhub.desktop x-scheme-handler/unityhub


    4- In case the above solution did not work out for you, I would suggest you to use for the time being the Unity Hub 2.4.x
    You can get it here and below is the MD5 Checksum
    22494f15b4002829eb206ce82f26a0cd UnityHub.AppImage

    Let me know.
     
  3. tatsuuuuuuu

    tatsuuuuuuu

    Joined:
    May 12, 2020
    Posts:
    35
    3 only firefox?

    also how did you install it?
    I have an appimage.
    and i manually created my own desktop file that points to the appimage
    will this work with the appimage too?

    EDIT :
    Code (JavaScript):
    1. xdg-mime default unityhub.desktop x-scheme-handler/unityhub
    this returns without doing anything.
    I also tried like this
    Code (JavaScript):
    1. xdg-mime default ./unityhub.desktop x-scheme-handler/unityhub
    And yeah I'm in the right folder and my desktop happened to be called exactly like yours : unityhub.desktop
     
    Last edited: Jan 14, 2022
  4. Pino_B

    Pino_B

    Joined:
    Oct 19, 2017
    Posts:
    23
    I had to do all the steps from 1 through 3 only for Firefox; Google Chrome worked out of the box for me.
    I am using Debian BookWorm by the way with KDE 5.

    You could try to uninstall Google Chrome like so

    Remember to Backup your Google Chrome Bookmarks

    sudo apt remove --purge google-chrome*
    sudo rm -r /home/$USER/.cache/google-chrome/
    sudo rm -r /home/$USER/.config/google-chrome/


    Install a brand new Google Chrome

    https://www.google.com/chrome/

    Once you have downloaded Google Chrome go into the folder where you just downloaded Chrome and type
    sudo dpkg -i google-chrome-stable*


    Hopefully now, you should be able to log in

    Unityhub 2.4.x worked out of the box and I did not need to create the desktop file explained in step #1.

    If you need help to uninstall/install Firefox from https://www.mozilla.org/en-US/firefox/new/?redirect_source=firefox-com, please let me know.
     
    Last edited: Jan 14, 2022
  5. tatsuuuuuuu

    tatsuuuuuuu

    Joined:
    May 12, 2020
    Posts:
    35
    I don't really understand. I've tested on Vivaldi, Chrome and a freshly installed firefox now.
    The desktop file changes did not work for the appImage version of unity hub.

    How did you manage to have a local install of unity hub?

    there's only appimage that I can find online.

    EDIT anyways you're right, with that old AppImage version I managed to activate my license.
    instead of opening a webpage it does it in the app.
     
    Last edited: Jan 14, 2022
  6. xvladky

    xvladky

    Joined:
    Oct 13, 2021
    Posts:
    1
    Thanks, It helped me.
    I had some forgotten bad copy of unityhub.desktop in folder ~/.local/share/applications/.