From 0865ca87d1cbfac46e66b08ae784b465a86bb2fd Mon Sep 17 00:00:00 2001 From: 0xjac Date: Fri, 5 Nov 2021 14:34:28 +0100 Subject: [PATCH] fix: set the app window icon on Linux Electron should use the executable icon as the default application window. However this seems broken on Linux. This might be related to https://github.com/alephium/alephium-wallet/pull/41 This sets the alephium icon for the application to be displayed by the wm on the window decoration, on windows switchers, etc. --- public/electron.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/electron.js b/public/electron.js index a6dfe57e7..9c2386b36 100644 --- a/public/electron.js +++ b/public/electron.js @@ -121,6 +121,10 @@ function createWindow() { titleBarStyle: process.platform === 'win32' ? 'default' : 'hidden' }) + if (process.platform === 'linux') { + mainWindow.setIcon(path.join(__dirname, "icons/logo-48.png")) + } + mainWindow.loadURL(isDev ? 'http://localhost:3000' : `file://${path.join(__dirname, '../build/index.html')}`) if (isDev) { // Open the DevTools.