Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    74
    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. AlphaAngles

    AlphaAngles

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

    MartijnGG

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