diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2023-08-03 14:00:51 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2023-08-03 14:00:51 +0200 |
commit | df5978f8bdd1ba6575e6062bc6721b30e7010e79 (patch) | |
tree | 526e72762bde595b7b65e4c15b28c14bf678dd56 /src-tauri/src/northstar | |
parent | 4187ef1c82b2a4bf78b8731afaadfeab25f69ff4 (diff) | |
download | FlightCore-df5978f8bdd1ba6575e6062bc6721b30e7010e79.tar.gz FlightCore-df5978f8bdd1ba6575e6062bc6721b30e7010e79.zip |
fix: Resolve compilation issue due to wrong types
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) |