Skip to content

Commit

Permalink
Merge pull request #2708 from vector-im/dbkr/png_icon_on_linux
Browse files Browse the repository at this point in the history
Use a PNG for the icon on non-Windows
  • Loading branch information
richvdh authored Dec 7, 2016
2 parents f6957aa + 737f912 commit 65a31cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion electron/src/electron-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 65a31cc

Please sign in to comment.