From e61e1308a5cc580730d53d3a64fe3e8c759a263a Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Wed, 21 Jun 2023 23:15:29 +0200 Subject: [PATCH] fix: proper runtime path in launch options for wivrn --- src/profile.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/profile.rs b/src/profile.rs index 1e5e37b..972d2ae 100644 --- a/src/profile.rs +++ b/src/profile.rs @@ -40,10 +40,14 @@ impl Profile { pub fn get_steam_launch_options(&self) -> String { let mut opts = vec![]; opts.push(format!( - "XR_RUNTIME_JSON={prefix}/share/openxr/1/openxr_monado.json", + "XR_RUNTIME_JSON={prefix}/share/openxr/1/openxr_{runtime}.json", prefix = match self.prefix.as_str() { SYSTEM_PREFIX => BWRAP_SYSTEM_PREFIX, other => other, + }, + runtime = match self.xrservice_type { + XRServiceType::Wivrn => "wivrn", + XRServiceType::Monado => "monado", } )); opts.push(format!(