From df0a86966aa2e91c66062b5b04ef60b3d8a471d7 Mon Sep 17 00:00:00 2001 From: Martin Fournier Date: Sun, 23 Jan 2022 12:38:47 -0500 Subject: [PATCH] Add icon for linux --- electron/gameWindow.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/electron/gameWindow.js b/electron/gameWindow.js index 35637d3a4..646fae209 100644 --- a/electron/gameWindow.js +++ b/electron/gameWindow.js @@ -14,7 +14,14 @@ const debug = process.argv.includes("--debug"); async function createWindow(killall) { const setStopProcessHandler = global.app_handlers.stopProcess; + + let icon; + if (process.platform == 'linux') { + icon = path.join(__dirname, 'icon.png'); + } + const window = new BrowserWindow({ + icon, show: false, backgroundThrottling: false, backgroundColor: "#000000",