mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-29 12:06:01 +02:00
shell
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
shell: patch
|
||||
---
|
||||
|
||||
shell.open will now try to execute `/usr/bin/xdg-open` before using `xdg-open` from `PATH`.
|
||||
@@ -218,6 +218,13 @@ impl OpenScope {
|
||||
// the `open` dependency. This behavior should be re-confirmed during upgrades of `open`.
|
||||
match with.map(Program::name) {
|
||||
Some(program) => ::open::with_detached(path, program),
|
||||
#[cfg(target_os = "linux")]
|
||||
None => {
|
||||
// ref https://github.com/tauri-apps/tauri/issues/10617
|
||||
::open::with_detached(&path, "/usr/bin/xdg-open")
|
||||
.or_else(|_| ::open::that_detached(path))
|
||||
}
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
None => ::open::that_detached(path),
|
||||
}
|
||||
.map_err(Into::into)
|
||||
|
||||
Reference in New Issue
Block a user