From de10bab0148c4340bb4ae7e33b0ab4af18a7fda9 Mon Sep 17 00:00:00 2001 From: FabianLars Date: Tue, 26 Nov 2024 14:19:47 +0100 Subject: [PATCH] opener --- crates/tauri-cli/src/interface/rust.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/crates/tauri-cli/src/interface/rust.rs b/crates/tauri-cli/src/interface/rust.rs index f695f10c1d3d..04906b1b0053 100644 --- a/crates/tauri-cli/src/interface/rust.rs +++ b/crates/tauri-cli/src/interface/rust.rs @@ -873,6 +873,20 @@ impl AppSettings for RustAppSettings { } } + if let Some(deps) = self + .manifest + .lock() + .unwrap() + .inner + .as_table() + .get("dependencies") + .and_then(|f| f.as_table()) + { + if deps.contains_key("tauri-plugin-opener") { + settings.appimage.bundle_xdg_open = true; + }; + } + Ok(settings) }