Skip to content

[Feature request] Keep app running after all windows are closed #2287

@woubuc

Description

@woubuc

Is your feature request related to a problem? Please describe.
I am building an app that should "live" in the system tray. The app window can be closed and later reopened by clicking on the tray icon. However, when the last window of the app closes, Tauri exits.

Describe the solution you'd like
I would like an option to keep the app running after all windows are closed, so that I can create a new window when the user clicks on the tray icon.

Describe alternatives you've considered
Hiding the window instead of closing it will keep the app active, so this is a possible workaround. But this means that the window still exists in memory and still uses resources while that isn't necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions