fix(desktop): validate app-open links on secondary launch

This commit is contained in:
t8y2 committed 2026-08-21 15:17:33 +08:00
1 parent 7d6a7c2321
commit 0daa23ed8f
1 file changed
+2 -1
+2 -1
View File
@@ -1290,6 +1290,7 @@ pub fn run() {
let builder = if should_enable_single_instance(cfg!(debug_assertions)) {
builder.plugin(tauri_plugin_single_instance::init(|app, args, cwd| {
let app_open_requested = args.iter().any(|arg| commands::deep_link::is_app_open_deep_link(arg));
let links = commands::deep_link::connection_deep_links_from_args(args.clone());
open_connection_deep_links(app, links);
@@ -1314,7 +1315,7 @@ pub fn run() {
// simply vanished - so make the reason recoverable from the logs.
if !show_main_window(app) {
eprintln!(
"[WINDOW] single-instance handoff could not reveal the main window; {}",
"[WINDOW] single-instance handoff could not reveal the main window; app_open_requested={app_open_requested}; {}",
main_window_probe_state(app)
);
}