Skip to content

Commit 65a31cc

Browse files
authored
Merge pull request element-hq#2708 from vector-im/dbkr/png_icon_on_linux
Use a PNG for the icon on non-Windows
2 parents f6957aa + 737f912 commit 65a31cc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎electron/src/electron-main.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,12 @@ electron.app.on('ready', () => {
156156
console.log("No update_base_url is defined: auto update is disabled");
157157
}
158158

159+
const icon_path = `${__dirname}/../img/riot.` + (
160+
process.platform == 'win32' ? 'ico' : 'png'
161+
);
162+
159163
mainWindow = new electron.BrowserWindow({
160-
icon: `${__dirname}/../img/riot.ico`,
164+
icon: icon_path,
161165
width: 1024, height: 768,
162166
show: false,
163167
});

0 commit comments

Comments
 (0)