diff options
Diffstat (limited to 'src-tauri/src/northstar')
-rw-r--r-- | src-tauri/src/northstar/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src-tauri/src/northstar/mod.rs b/src-tauri/src/northstar/mod.rs index 18a707b0..f76d105d 100644 --- a/src-tauri/src/northstar/mod.rs +++ b/src-tauri/src/northstar/mod.rs @@ -119,10 +119,9 @@ pub fn launch_northstar( // We cannot add the params directly because of limitations with cmd.exe // https://stackoverflow.com/questions/9964865/c-system-not-working-when-there-are-spaces-in-two-different-parameters/9965141#9965141 - let launch_parameters = launch_parameters.unwrap_or_default(); + let launch_parameters = format!("{} {}", ns_profile_arg, launch_parameters.unwrap_or_default()); let ns_params: Vec<&str> = launch_parameters.split_whitespace().collect(); dbg!(ns_params.clone()); - args.extend(vec![ns_profile_arg]); args.extend(ns_params); let _output = std::process::Command::new("C:\\Windows\\System32\\cmd.exe") .args(args) |