Skip to content

Commit

Permalink
Fix window icon in Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
yishn committed Sep 19, 2017
1 parent 0288353 commit dc3ed8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const {app, shell, dialog, ipcMain, BrowserWindow, Menu} = require('electron')
const fs = require('fs')
const {join} = require('path')
const setting = require('./setting')
const updater = require('./updater')

Expand All @@ -9,7 +10,7 @@ let isReady = false

function newWindow(path) {
let window = new BrowserWindow({
icon: process.platform === 'linux' ? `${__dirname}/../logo.png` : null,
icon: process.platform === 'linux' ? join(__dirname, '..', 'logo.png') : null,
title: app.getName(),
useContentSize: true,
width: setting.get('window.width'),
Expand Down

0 comments on commit dc3ed8b

Please sign in to comment.