diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2022-12-13 22:47:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-13 22:47:57 +0100 |
commit | 8462d5eaf7bd6eb746dba95f72b3429a135b5a19 (patch) | |
tree | 9c8e5a30820aeb229a46bf75e166b291e3a03858 | |
parent | baa4d8b07b4cad0f56ad9719aaefc7ee8a615ff4 (diff) | |
download | FlightCore-8462d5eaf7bd6eb746dba95f72b3429a135b5a19.tar.gz FlightCore-8462d5eaf7bd6eb746dba95f72b3429a135b5a19.zip |
feat: Start Northstar properly detached (#112)
Simply run cmd with `start "" "PATH/TO/NORTHSTAR_EXE"`
Co-authored-by: ASpoonPlaysGames <66967891+ASpoonPlaysGames@users.noreply.github.com>
Co-authored-by: ASpoonPlaysGames <66967891+ASpoonPlaysGames@users.noreply.github.com>
-rw-r--r-- | src-tauri/src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 675a06ef..54f23d93 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -291,11 +291,11 @@ pub fn launch_northstar( || matches!(game_install.install_type, InstallType::ORIGIN) || matches!(game_install.install_type, InstallType::UNKNOWN)) { - let _output = - std::process::Command::new(format!("{}/NorthstarLauncher.exe", game_install.game_path)) - // .args(&["a", "b"]) - .spawn() - .expect("failed to execute process"); + let ns_exe_path = format!("{}/NorthstarLauncher.exe", game_install.game_path); + let _output = std::process::Command::new("C:\\Windows\\System32\\cmd.exe") + .args(&["/C", "start", "", &ns_exe_path]) + .spawn() + .expect("failed to execute process"); return Ok("Launched game".to_string()); } |