Skip to content

Handle WM_QUERYENDSESSION and WM_ENDSESSION #1115

@thomaseizinger

Description

@thomaseizinger

Is your feature request related to a problem? Please describe.

Allow the Windows installer to automatically close a running Tauri app that is running in the tray menu.

Describe the solution you'd like

Tauri apps to be gracefully closed during the install process.

Describe alternatives you've considered

I am not sure there are alternatives.

Additional context

The Guidelines for Applications describe that a Windows application should listen to the above mentioned signals.

Currently, tao only listens to the WM_CLOSE message. It would be useful to also create an event for WM_ENDSESSION that allows applications to directly shutdown.

Specifically, for apps that minimise themselves to the tray menu, WM_CLOSE is typically surpressed because we don't want the application to exit when the window is closed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions