From 737f912abb3567f7318439d2dc275aecb6caea74 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 7 Dec 2016 11:19:51 +0000 Subject: [PATCH] Use a PNG for the icon on non-Windows MATE desktop env (and presumably other GNOMEs don't support ICOs, so use a PNG. Fixes https://github.com/vector-im/riot-web/issues/2705 --- electron/src/electron-main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/electron/src/electron-main.js b/electron/src/electron-main.js index 788d46028c..2b135a03ed 100644 --- a/electron/src/electron-main.js +++ b/electron/src/electron-main.js @@ -156,8 +156,12 @@ electron.app.on('ready', () => { console.log("No update_base_url is defined: auto update is disabled"); } + const icon_path = `${__dirname}/../img/riot.` + ( + process.platform == 'win32' ? 'ico' : 'png' + ); + mainWindow = new electron.BrowserWindow({ - icon: `${__dirname}/../img/riot.ico`, + icon: icon_path, width: 1024, height: 768, show: false, });