You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I have a NextJS Tauri application and I am running into an issue on windows. When do a prod build of my application and run it, when I click the close button, the window closes, but I still have a bunch of processes running in the background. How do I make it so when I close the window, it closes/kills all the processes too?
My main.rs code is:
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]use tauri::Manager;fnmain(){
tauri::Builder::default().plugin(tauri_plugin_sql::Builder::default().build()).run(tauri::generate_context!()).expect("error while running tauri application");}
Here is a screenshot of all the processes that are left running after I have closed out of the application
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I have a NextJS Tauri application and I am running into an issue on windows. When do a prod build of my application and run it, when I click the close button, the window closes, but I still have a bunch of processes running in the background. How do I make it so when I close the window, it closes/kills all the processes too?
My main.rs code is:
Here is a screenshot of all the processes that are left running after I have closed out of the application

Tauri version/details:
tauri = { version = "1.5.4", features = [ "clipboard-write-text", "clipboard-read-text", "window-create", "os-all", "shell-execute", "fs-exists", "fs-remove-file", "window-set-size", "shell-open", "dialog-confirm", "dialog-open", "dialog-message", "dialog-ask", "global-shortcut-all"] }
Update:
I have been able to get it to work with
Is this the correct/orifical way to do this, or is there another/better way?
Beta Was this translation helpful? Give feedback.
All reactions