Skip to content

Commit 52ef0ad

Browse files
authored
feat(shell): ensure launched processes are detached (#463)
* feat(shell): ensure launched processes are detached ref: tauri-apps/tauri#6849 * change file
1 parent 5fd597d commit 52ef0ad

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

.changes/shell-detached.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"shell": patch
3+
---
4+
5+
Ensure the launched process is detached so it can out-live your tauri app and does not shutdown with it.

Cargo.lock

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/shell/src/scope.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ impl Scope {
264264
// The prevention of argument escaping is handled by the usage of std::process::Command::arg by
265265
// the `open` dependency. This behavior should be re-confirmed during upgrades of `open`.
266266
match with.map(Program::name) {
267-
Some(program) => ::open::with(path, program),
268-
None => ::open::that(path),
267+
Some(program) => ::open::with_detached(path, program),
268+
None => ::open::that_detached(path),
269269
}
270270
.map_err(Into::into)
271271
}

0 commit comments

Comments
 (0)