From 5ee4237510ba9c1e4924f202e99e788ce2132e2a Mon Sep 17 00:00:00 2001 From: wAuner <18383180+wAuner@users.noreply.github.com> Date: Sat, 24 Mar 2018 14:48:34 +0100 Subject: [PATCH] fix incorrect app closing for linux mint cinnamon excluded the cinnamon desktop for the macOS-like behavior which closes the window, but does not shutdown the app processes --- lib/main-window.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/main-window.js b/lib/main-window.js index 4ac60797..86b85a24 100644 --- a/lib/main-window.js +++ b/lib/main-window.js @@ -40,7 +40,7 @@ mainWindow.webContents.sendInputEvent({ keyCode: '\u0008' }) -if (process.platform === 'darwin' || process.env.DESKTOP_SESSION === 'cinnamon') { +if (process.platform === 'darwin') { mainWindow.on('close', function (e) { e.preventDefault() if (mainWindow.isFullScreen()) {