ValveSoftware / SteamVR-for-Linux

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

[BUG] vrcompositor-launcher fails to run zenity #410

Open codewiz opened 3 years ago

codewiz commented 3 years ago

Describe the bug On first launch, vrcompsitor-launcher tries to execute /usr/bin/zenity, but evidently LD_LIBRARY_PATH contains extraneous libraries, because the binary fails to load:

/usr/bin/zenity --no-wrap --question '--text=SteamVR requires superuser access to finish setup. Proceed?' /usr/bin/zenity: symbol lookup error: /usr/lib/libgdk-3.so.0: undefined symbol: cairo_surface_unmap_image pErr 'Error: user declined superuser request.'

To Reproduce Steps to reproduce the behavior:

  1. Go to SteamVR [beta]
  2. Click on Launch
  3. See error

Expected behavior A window should pop up, asking for superuser access

System Information (please complete the following information):

codewiz commented 3 years ago

As a workaround, I prefixed the command with LD_LIBRARY_PATH= in steamapps/common/SteamVR/bin/vrstartup.sh:

-        if ! ${STEAM_ZENITY} --no-wrap --question --text="SteamVR requires superuser access to finish setup. Proceed?"; then
+        if ! LD_LIBRARY_PATH= ${STEAM_ZENITY} --no-wrap --question --text="SteamVR requires superuser access to finish setup. Proceed?"; then

After this, things proceed to vrstartup

smcv commented 3 years ago

This apears to have been a cairo bug which will hopefully be fixed in its next release: https://gitlab.freedesktop.org/cairo/cairo/-/issues/442