Skip to content

Commit

Permalink
fix: Address clippy error regarding zombie child process (#1053)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeckoEidechse authored Dec 9, 2024
1 parent d69acce commit deb20be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src-tauri/src/northstar/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,11 @@ pub fn launch_northstar(
let ns_exe_path = format!("{}/NorthstarLauncher.exe", game_install.game_path);
let ns_profile_arg = format!("-profile={}", game_install.profile);

let _output = std::process::Command::new("C:\\Windows\\System32\\cmd.exe")
let mut output = std::process::Command::new("C:\\Windows\\System32\\cmd.exe")
.args(["/C", "start", "", &ns_exe_path, &ns_profile_arg])
.spawn()
.expect("failed to execute process");
output.wait().expect("failed waiting on child process");
return Ok("Launched game".to_string());
}

Expand Down

0 comments on commit deb20be

Please sign in to comment.