From c54e2a30b6a9493a83ce3ce98d46f2aab745bab1 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 30 May 2017 12:33:32 +0100 Subject: [PATCH] explicitly hide because setApplicationMenu on Linux otherwise shows... https://github.com/electron/electron/issues/9621 Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- electron_app/src/electron-main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/electron_app/src/electron-main.js b/electron_app/src/electron-main.js index d739a8d0c2..cef16f21bc 100644 --- a/electron_app/src/electron-main.js +++ b/electron_app/src/electron-main.js @@ -236,6 +236,10 @@ electron.app.on('ready', () => { mainWindow.loadURL(`file://${__dirname}/../../webapp/index.html`); electron.Menu.setApplicationMenu(vectorMenu); + // explicitly hide because setApplicationMenu on Linux otherwise shows... + // https://github.com/electron/electron/issues/9621 + mainWindow.hide(); + // Create trayIcon icon tray.create(mainWindow, { icon_path: iconPath,