Skip to content

before-quit, will-quit and quit not triggered on windows 10 #9613

@pixtron

Description

@pixtron
  • 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.

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