tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
85.38k stars 2.58k forks source link

fix(windows): The restart api does not work in single-instance mode #11684

Open muwoo opened 1 week ago

muwoo commented 1 week ago

fix: https://github.com/tauri-apps/plugins-workspace/issues/1692. Single instance mode should not cause restarted applications to exit.

We can add an additional restart_from_tauri_api parameter to tauri::api::process::restart to tell single-instance that this startup should not be blocked.

link single-instance plugin changes: #2050