SteamVR-for-Linux icon indicating copy to clipboard operation
SteamVR-for-Linux copied to clipboard

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

Open mikatammi opened this issue 3 years ago • 0 comments

Your system information

  • Steam client version (build number or date): Aug 20 2022, at 01:17:25
  • SteamVR version 1.23
  • Distribution (e.g. Ubuntu): NixOS 22.05
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes

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

mikatammi avatar Sep 12 '22 22:09 mikatammi