Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Need Help, Unity Hub fails to start on linux mint.

Discussion in 'Getting Started' started by StefandeVries, Oct 22, 2020.

  1. StefandeVries

    StefandeVries

    Joined:
    Aug 20, 2020
    Posts:
    3
    I was using unity hub on linux mint to open unity projects and suddenly my pc fails to launch unity hub. I always opened the start menu, hovered over the development category and clicked unity hub to launch it. That always worked for me, but it does no longer do so. I am not an huge expert on Unity or Linux mint.

    There are other options to open unity. One solution would be the command line, but if I type unity in the command line, it returns that it does not know unity. So I would like to know the correct line to launch unity in the command line and see why it does not launch.

    As far as I know, Unity hub is optional and there should also be other ways to open unity projects, but these are also unknown to me. If you know other ways to launch unity, it would be welcomed.
     
  2. max3210

    max3210

    Joined:
    Apr 19, 2020
    Posts:
    17
    I'm using a different Linux distro to you, but on mine I can type 'unityhub' in the command line to start it.

    If it gives an error message you could do a specific search on this, or ask here.

    Sorry I can't be more help, I'm a beginner too to Unity.
     
  3. StefandeVries

    StefandeVries

    Joined:
    Aug 20, 2020
    Posts:
    3
    I have tried to run unityhub in the terminal by using

    /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=start-unityhub --file-forwarding com.unity.UnityHub @@u %u @@

    and it returned

    Traceback (most recent call last):
    File "/app/bin/start-unityhub", line 82, in <module>
    main()
    File "/app/bin/start-unityhub", line 74, in main
    env['TMPDIR'] = f'{env["XDG_RUNTIME_DIR"]}/app/{env["FLATPAK_ID"]}'
    KeyError: 'FLATPAK_ID'

    However I don´t know what the source of the error is or what KeyError FLATPAK_ID means.
     
  4. RichAllen2023

    RichAllen2023

    Joined:
    Jul 19, 2016
    Posts:
    1,026
    As I recall the command line my Brother used to install Unity 2019 on my Linux powered Chromebox was.

    Sudo apt install unity.
     
  5. StefandeVries

    StefandeVries

    Joined:
    Aug 20, 2020
    Posts:
    3
    Rich Allen,

    Thanks for the effort to try to respond to my problem. In case it wasn´t clear, I allready had unity and unityhub installed, they just stopped working for no obvious reason. After it stopped working, I installed updates and cleared over 10 gb of memory space. It might be meantionworthy to say that my device is dated, but it used to run Unity fine until it recently failed to launch. I didn´t wanted to reinstall unity again since I downloaded 20GB to be able to work on several platforms(even though seemingly I can´t get anything done on unity ;) for any platform) and I did not want to download that again if a better solution would exist.