Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Unity Hub 2.2.1 - Broken environmental variables

Discussion in 'Unity Hub' started by MartijnGG, Dec 5, 2019.

  1. MartijnGG

    MartijnGG

    Joined:
    May 3, 2018
    Posts:
    73
    Unity Hub 2.2.1 seems to be altering the environmental variables that are passed along to Unity when launched.
    The resulting variables can break unity if you have a PATHEXT user variable which includes its system variable.

    For example:
    %PATHEXT%;.rb;.rbw
    will turn into something like
    %PATHEXT%;.rb;.rbw;.rb;.rbw;.rb;.rbw;.rb;.rbw;.rb;.rbw


    Similarly, any environmental variables that the Unity Hub interited from its parent process (explorer) are lost in the process.
    An example of this is the USERNAME variable, which will be SYSTEM instead of your currently logged in username, as this should be interited from explorer.exe.
     
  2. mf_andreich

    mf_andreich

    Joined:
    Jul 7, 2017
    Posts:
    38
    Thx man, you save my life =)
     
  3. Ender_Eternal

    Ender_Eternal

    Joined:
    Oct 24, 2015
    Posts:
    2
    So then how am i supposed to fix it?
     
  4. MartijnGG

    MartijnGG

    Joined:
    May 3, 2018
    Posts:
    73
    Remove your User level PATHEXT variable
     
    ttermeer-reboundcg likes this.
unityunity