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
This commit is contained in:
parent
f6957aa367
commit
737f912abb
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue