From 583122ee3efd37fb457d0aa5cbf6d639aa3d8626 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 7 Jul 2016 09:15:36 -0700 Subject: [PATCH 1/2] Add quit menu item on Linux --- default_app/main.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/default_app/main.js b/default_app/main.js index 181f2f00a9be..ceb7d1677c48 100644 --- a/default_app/main.js +++ b/default_app/main.js @@ -197,9 +197,7 @@ app.once('ready', () => { role: 'front' } ] - } - - if (process.platform === 'win32') { + } else { template.unshift({ label: 'File', submenu: [ From 1e0e5b0effec6708efc962b861f1ad32e21b3d78 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 7 Jul 2016 09:19:20 -0700 Subject: [PATCH 2/2] Use CommandOrControl+Q for quit role on Linux --- lib/browser/api/menu-item-roles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/browser/api/menu-item-roles.js b/lib/browser/api/menu-item-roles.js index 082099818fdc..32d0d07f4b92 100644 --- a/lib/browser/api/menu-item-roles.js +++ b/lib/browser/api/menu-item-roles.js @@ -64,7 +64,7 @@ const roles = { default: return 'Quit' } }, - accelerator: process.platform === 'win32' ? null : 'Command+Q', + accelerator: process.platform === 'win32' ? null : 'CommandOrControl+Q', appMethod: 'quit' }, redo: {