Skip to content

Handle WM_QUERYENDSESSION and WM_ENDSESSION #1115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
thomaseizinger opened this issue May 19, 2025 · 0 comments
Open

Handle WM_QUERYENDSESSION and WM_ENDSESSION #1115

thomaseizinger opened this issue May 19, 2025 · 0 comments

Comments

@thomaseizinger
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant