From 58deb1402867a455bfee02de6dfbb8c458832272 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 4 Sep 2025 16:18:11 +1000 Subject: [PATCH] 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 2491eb0316283abe010a0e908b4dab17c5dba37f --- qt/launcher/src/platform/mac.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/qt/launcher/src/platform/mac.rs b/qt/launcher/src/platform/mac.rs index 8662ba9f5..3f5b0ce2e 100644 --- a/qt/launcher/src/platform/mac.rs +++ b/qt/launcher/src/platform/mac.rs @@ -64,6 +64,7 @@ pub fn relaunch_in_terminal() -> Result<()> { Command::new("open") .args(["-na", "Terminal"]) .arg(current_exe) + .env_remove("ANKI_LAUNCHER_WANT_TERMINAL") .ensure_spawn()?; std::process::exit(0); }