From 1d3168dc4a16d07c46a9e57eec4a9dccfe7deda5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20V=C3=A1squez?= <95881408+jjvn84@users.noreply.github.com> Date: Wed, 18 Jun 2025 19:14:54 -0400 Subject: [PATCH] Allows desktop apps to open mailto links (#4282) * Allows desktop apps to open mailto links * Drop webbrowser, use `open` only * switch to that_detached * use workspace `open` --------- Co-authored-by: Jonathan Kelley --- Cargo.lock | 19 +------------------ Cargo.toml | 1 - packages/cli/src/build/request.rs | 2 +- packages/desktop/Cargo.toml | 2 +- packages/desktop/src/app.rs | 2 +- packages/desktop/src/webview.rs | 7 +++++-- 6 files changed, 9 insertions(+), 24 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 07763f2eb..8e9e43e69 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3951,6 +3951,7 @@ dependencies = [ "ndk-sys 0.6.0+11769913", "objc", "objc_id", + "open", "percent-encoding", "rand 0.8.5", "reqwest 0.12.15", @@ -3967,7 +3968,6 @@ dependencies = [ "tokio-tungstenite", "tracing", "tray-icon", - "webbrowser", "wry", ] @@ -16194,23 +16194,6 @@ dependencies = [ "string_cache_codegen", ] -[[package]] -name = "webbrowser" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5df295f8451142f1856b1bd86a606dfe9587d439bc036e319c827700dbd555e" -dependencies = [ - "core-foundation 0.10.0", - "home", - "jni", - "log", - "ndk-context", - "objc2 0.6.1", - "objc2-foundation 0.3.1", - "url", - "web-sys", -] - [[package]] name = "webkit2gtk" version = "2.0.1" diff --git a/Cargo.toml b/Cargo.toml index d8ce18701..9020ebfd0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -314,7 +314,6 @@ memfd = "0.6.4" # desktop wry = { version = "0.45.0", default-features = false } tao = { version = "0.33.0", features = ["rwh_05"] } -webbrowser = "1.0.3" infer = "0.19.0" dunce = "1.0.5" percent-encoding = "2.3.1" diff --git a/packages/cli/src/build/request.rs b/packages/cli/src/build/request.rs index 4596a090b..78ff4ec7a 100644 --- a/packages/cli/src/build/request.rs +++ b/packages/cli/src/build/request.rs @@ -4148,7 +4148,7 @@ r#"