mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
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:
parent
5c4d2e87a1
commit
58deb14028
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue