feat(shell): ensure launched processes are detached (#463)

* feat(shell): ensure launched processes are detached

ref: https://github.com/tauri-apps/tauri/issues/6849

* change file
This commit is contained in:
Amr Bashir
2023-07-04 14:30:22 +03:00
committed by GitHub
parent 5fd597ddaf
commit 52ef0addd8
3 changed files with 10 additions and 4 deletions
+2 -2
View File
@@ -264,8 +264,8 @@ impl Scope {
// The prevention of argument escaping is handled by the usage of std::process::Command::arg by
// the `open` dependency. This behavior should be re-confirmed during upgrades of `open`.
match with.map(Program::name) {
Some(program) => ::open::with(path, program),
None => ::open::that(path),
Some(program) => ::open::with_detached(path, program),
None => ::open::that_detached(path),
}
.map_err(Into::into)
}