Skip to content

Commit eff70e6

Browse files
committed
Added alternative way of launching SteamVR in linux.
1 parent 67c1860 commit eff70e6

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

alvr/dashboard/src/steamvr_launcher/linux_steamvr.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ use alvr_common::anyhow::bail;
66
use alvr_common::{debug, error, info, warn};
77
use sysinfo::Process;
88

9-
pub fn launch_steamvr_with_steam() {
10-
Command::new("steam")
11-
.args(["steam://rungameid/250820"])
9+
pub fn start_steamvr() {
10+
Command::new("sh")
11+
.args(["-c", "cd $(dirname $0) && ./steamvr_linux.sh"])
1212
.spawn()
1313
.ok();
1414
}

steamvr-script/readme.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
This is a sample script to fix an issue with steam breaking DRI_PRIME and QT_QPA_PLATFORM
2+
commands from working together in some distros.
3+
4+
5+
Place in alvr_streamer_linux/bin folder where the alvr_dashboard binary is.
6+
7+
Be sure to change the commands and steamvr vrmonitor.sh path as needed.
8+
9+
make it executably by typing chmod +x steamvr_linux.sh
10+

steamvr-script/steamvr_linux.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DRI_PRIME=1 QT_QPA_PLATFORM=xcb ~/.local/share/Steam/steamapps/common/SteamVR/bin/vrmonitor.sh

0 commit comments

Comments
 (0)