ValveSoftware / SteamVR-for-Linux

Issue tracker for the Linux port of SteamVR
930 stars 45 forks source link

SteamVR's (version 1.23) vrwebhelper.sh script checks for unbound variable the wrong way #538

Open mikatammi opened 2 years ago

mikatammi commented 2 years ago

Your system information

Please describe your issue in as much detail as possible:

SteamVR's vrwebhelper.sh script gives error for unbound variable, as "set -u" is being set which checks for unbound variables.

/home/username/.local/share/Steam/steamapps/common/SteamVR/bin/vrwebhelper/linux64/vrwebhelper.sh: line 17: STEAMVR_VRENV: unbound variable

Proper way would be to use eg. [ -v STEAMVR_VRENV ] first to test if the variable has been set. This does not trigger the unbound variable error.

Steps for reproducing this issue:

  1. Launch Steam and Half-Life Alyx
  2. Get the "Timed out trying to connect to Mongoose" -error, and the above error in terminal output

I was able to launch Half-Life Alyx, by running Steam with: STEAMVR_VRENV="${HOME}/.local/share/Steam/steamapps/common/SteamVR/bin/vrenv.sh" steam

antoniomo commented 1 year ago

Related: #332