Don't reuse existing terminal process

May possibly help with #4304
This commit is contained in:
Damien Elmes 2025-09-03 17:20:32 +10:00
parent 06f9d41a96
commit 2491eb0316

View file

@ -62,7 +62,7 @@ pub fn prepare_for_launch_after_update(mut cmd: Command, root: &Path) -> Result<
pub fn relaunch_in_terminal() -> Result<()> { pub fn relaunch_in_terminal() -> Result<()> {
let current_exe = std::env::current_exe().context("Failed to get current executable path")?; let current_exe = std::env::current_exe().context("Failed to get current executable path")?;
Command::new("open") Command::new("open")
.args(["-a", "Terminal"]) .args(["-na", "Terminal"])
.arg(current_exe) .arg(current_exe)
.ensure_spawn()?; .ensure_spawn()?;
std::process::exit(0); std::process::exit(0);