From f60bf3f3300eccbd7406833fc7b44aaf807e2478 Mon Sep 17 00:00:00 2001 From: Ole-Morten Duesund Date: Mon, 16 Feb 2026 14:02:45 +0100 Subject: [PATCH] Use graceful Tauri shutdown instead of hard process exit Replace std::process::exit(0) with app_handle.exit(0) in the tray quit handler so Tauri runs its shutdown sequence, dropping resources and firing RunEvent::Exit cleanly. Co-Authored-By: Claude Opus 4.6 --- src-tauri/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index a153f54..3268625 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -172,7 +172,7 @@ pub fn run() { } } "quit" => { - std::process::exit(0); + app_handle.exit(0); } _ => {} })