Open mathew2214 opened 2 years ago
Affected, the bug is in .local/share/applications/valve-URI-vrmonitor.desktop
file, and it could be fixed this way: https://gitlab.freedesktop.org/xdg/xdg-utils/-/issues/174
Another option is installing an alternative to xdg-open
. Some options listed here (remember to install a shim so xdg-open
calls your alternative): https://wiki.archlinux.org/title/default_applications#xdg-open
I figured I should throw my issue in here as well (original: https://github.com/anyc/steam-overlay/issues/324)
Distribution: Gentoo Linux SteamVR version: 1.25.2 Opted into Steam client beta?: YES Graphics driver version: mesa 22.3.2
The desktop files that exist in .local/share/applications
for SteamVR are all valid and launch the vrmonitor but seem to not work when using xdg-open
for the same URI that the UI would use.
For example the result I get is:
$ xdg-open vrmonitor://quit
env: ‘"/home/kyle/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/../vrmonitor.sh"’: No such file or directory
/usr/bin/xdg-open: line 870: x-www-browser: command not found
and then the URI gets opened up in firefox instead. The vrmonitor.sh
in question does indeed exist at that path.
Any assistance would be greatly appreciated as I would love to get this fixed so I can quit SteamVR from within SteamVR. The desktop files seem to exactly match what I had on my Arch install where all of the behavior works as expected (pressing quit in SteamVR quits out of SteamVR instead of opening the URI in firefox).
SOLUTION: It looks like the bandaid fix is to edit the desktop files that SteamVR auto-generates and remove the double quotes around the path, then set them all as read-only.
any attempt to invoke the vrmonitor:// URI with xdg-open leads to error 811 permission denied.
steps to reproduce: run xdg-open vrmonitor://quit from a terminal
Expected behavior xdg-open vrmonitor:// quit should exit steamVR
Note: Commenters who are also experiencing this issue are encouraged to include the "System Information" section in their replies.