From b419cdf19364d7efaf8ab8223f147f860bade1b3 Mon Sep 17 00:00:00 2001 From: Matt Colyer Date: Thu, 31 Oct 2013 11:47:52 -0700 Subject: [PATCH] Close browser after last window exits on windows --- src/browser/atom-application.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/browser/atom-application.coffee b/src/browser/atom-application.coffee index f0fa4126b..8f170bb87 100644 --- a/src/browser/atom-application.coffee +++ b/src/browser/atom-application.coffee @@ -146,6 +146,9 @@ class AtomApplication else @openPath(pathToOpen: "atom://config") + app.on 'window-all-closed', -> + app.quit() if process.platform is 'win32' + app.on 'will-quit', => fs.unlinkSync socketPath if fs.existsSync(socketPath) # Clean the socket file when quit normally.