The minimal test case:
package.json :
{
"main": "quit-test.js",
"name": "quit-test",
"description": "quit-test",
"version": "0.1.0"
}
quit-test.js :
var app = require('app');
app.on('ready', function () {
console.log('ev:app ready');
app.quit();
console.log('after app.quit()');
});
app.on('quit', function () {
console.log('ev:app quit');
});
app.on('will-quit', function () {
console.log('ev:app will-quit');
});
Console output:
[804:0723/203017:INFO:CONSOLE(0)] ev:app ready
[804:0723/203017:INFO:CONSOLE(0)] ev:app will-quit
[804:0723/203017:INFO:CONSOLE(0)] ev:app quit
[804:0723/203017:INFO:CONSOLE(0)] after app.quit()
After the "quit" event, there are still two electron.exe process listed in Windows task manager, and I have to kill them forcibly.
Tested with electron-v0.30.0-win32-ia32 on Windows 7 64bit.
The minimal test case:
package.json:quit-test.js:Console output:
After the "quit" event, there are still two
electron.exeprocess listed in Windows task manager, and I have to kill them forcibly.Tested with electron-v0.30.0-win32-ia32 on Windows 7 64bit.