From 7eeba0c082e687a8ffeb3ba3b42b5183a48de179 Mon Sep 17 00:00:00 2001 From: Dick Choi Date: Sun, 14 Aug 2016 03:58:19 +0900 Subject: [PATCH] App on Linux without cinnamon must be terminated after closing main window --- lib/main-window.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/main-window.js b/lib/main-window.js index b93b3c6c..dd275e39 100644 --- a/lib/main-window.js +++ b/lib/main-window.js @@ -33,6 +33,9 @@ mainWindow.webContents.sendInputEvent({ }) mainWindow.on('close', function (e) { + if (process.platform === 'linux' && process.env.DESKTOP_SESSION !== 'cinnamon') { + return true + } mainWindow.hide() e.preventDefault() })