diff --git a/src/profiles/wivrn.rs b/src/profiles/wivrn.rs index a6e4f83..980e1ed 100644 --- a/src/profiles/wivrn.rs +++ b/src/profiles/wivrn.rs @@ -5,6 +5,7 @@ use crate::{ prepare_ld_library_path, Profile, ProfileFeatures, ProfileOvrCompatibilityModule, XRServiceType, }, + ui::job_worker::internal_worker::LAUNCH_OPTS_CMD_PLACEHOLDER, }; use std::collections::HashMap; @@ -28,6 +29,9 @@ pub fn wivrn_profile() -> Profile { features: ProfileFeatures { ..Default::default() }, + xrservice_launch_options: format!( + "{LAUNCH_OPTS_CMD_PLACEHOLDER} --no-instructions --no-manage-active-runtime" + ), environment, prefix, can_be_built: true, diff --git a/src/ui/job_worker/internal_worker.rs b/src/ui/job_worker/internal_worker.rs index 25c40a2..437e6a9 100644 --- a/src/ui/job_worker/internal_worker.rs +++ b/src/ui/job_worker/internal_worker.rs @@ -155,7 +155,7 @@ impl Worker for InternalJobWorker { } } -const LAUNCH_OPTS_CMD_PLACEHOLDER: &str = "%command%"; +pub const LAUNCH_OPTS_CMD_PLACEHOLDER: &str = "%command%"; impl InternalJobWorker { pub fn xrservice_worker_from_profile( @@ -193,9 +193,6 @@ impl InternalJobWorker { } else { launch_opts }; - if !launch_opts.contains(" --no-instructions") { - launch_opts.push_str(" --no-instructions"); - } let (command, args) = match launch_opts.is_empty() { false => ( "sh".into(),