Browse Source

Linux does not support .ico files for the window icon

pull/1265/head
grummi92 8 years ago
parent
commit
2d5a8e77f9
  1. 7
      electron/main.js

7
electron/main.js

@ -138,11 +138,16 @@ function handleSquirrelEvent() {
let mainWindow; let mainWindow;
let isQuitting = false; let isQuitting = false;
let iconPath = __dirname + '/../resources/Icon.ico';
if (process.platform === 'linux') {
iconPath = __dirname + '/../resources/Icon.png';
}
function createWindow () { function createWindow () {
// Create the browser window using the state information // Create the browser window using the state information
mainWindow = new BrowserWindow({ mainWindow = new BrowserWindow({
title: 'Rambox' title: 'Rambox'
,icon: __dirname + '/../resources/Icon.ico' ,icon: iconPath
,backgroundColor: '#FFF' ,backgroundColor: '#FFF'
,x: config.get('x') ,x: config.get('x')
,y: config.get('y') ,y: config.get('y')

Loading…
Cancel
Save