-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Closed
Description
- Electron version: v1.7.2
- Operating system: Win 10 x64
Expected behavior
The Events before-quit
, will-quit
and quit
should be triggered when the app is closed after the user signs out of windows, shuts down windows or restarts windows.
Actual behavior
The events are not triggered, although they are triggered when the app is closed by app.quit();
How to reproduce
https://github.com/pixtron/electron-quick-start/tree/quit-event-wn10
$ npm install
$ npm run pack
$ explorer dist\win-unpacked
- Start the electron-quick-start.exe
- Sign out and sign in again.
in Get-Content $HOME/AppData/Roaming/electron-quick-start/log.log
should contain the logs for the events, but they are not present.
If the app is terminated with taskkill /IM electron-quick-start.exe
the quit events are triggered.
On OSX the events are triggered as expected when the app is quit during a sign out.
brandonwamboldt, BTARPAR, Patronics and shahul01