Ensure the newly-spawned terminal doesn't inherit the env var

It seems like the open call was leaking it into the newly spawned
process.

Follow-up fix to 2491eb0316
This commit is contained in:
Damien Elmes 2025-09-04 16:18:11 +10:00
parent 5c4d2e87a1
commit 58deb14028

View file

@ -64,6 +64,7 @@ pub fn relaunch_in_terminal() -> Result<()> {
Command::new("open") Command::new("open")
.args(["-na", "Terminal"]) .args(["-na", "Terminal"])
.arg(current_exe) .arg(current_exe)
.env_remove("ANKI_LAUNCHER_WANT_TERMINAL")
.ensure_spawn()?; .ensure_spawn()?;
std::process::exit(0); std::process::exit(0);
} }