#Tauri V2 is it possible to close (not hide) a window while keep the app running in background?

14 messages · Page 1 of 1 (latest)

robust urchin
#

This would greatly reduce the footprint of my app that runs mostly in background, is it possible to close the window? Not hide it, and re-launch it again on system tray click?
Thank you

robust urchin
#

Found it! Looks like the example from V1 tray works

#

I am not sure about the resources consumed they show the same but I am yet to try on a release build

#

how do I relaunch the window though? Is it possible?

#

after all its still consuming the same resources when closing the webview, about 20mgs, not too bad but could be better while running in background

#

maybe its better just to hide window

stray frigate
#

On windows for example the rust main app is more like 5mb but all processes together ~80mb. closing all webviews will just leave the 5mb

robust urchin
#

Thanks, I'm on Linux, will check on windows, also on Linux I only find one process related to the app I am working at, maybe I need to search better to find the related webviews

stray frigate
#

search for something with webkit in its name, or localhost:1420 / tauri://localhost

#

can't remember what the process names were on linux but there should be at least 2 more besides the main rust one

robust urchin
#

confirmed on windows the main process is only 4mb

#

if you know how I can reboot the window after closing it using systemExit event let me know

stray frigate