Skip to content

Commit

Permalink
gui: Try a work-around for the icon on Ubuntu
Browse files Browse the repository at this point in the history
See #1055
  • Loading branch information
nono committed Feb 22, 2019
1 parent 7bf694a commit c022bcb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gui/js/window_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ module.exports = class WindowManager {
this.log.debug('create')
const opts = this.windowOptions()
opts.show = false
// https://github.com/AppImage/AppImageKit/wiki/Bundling-Electron-apps
if (process.platform === 'linux') {
opts.icon = path.join(__dirname, '../images/icon.png')
}
this.win = new BrowserWindow(opts)
this.win.on('unresponsive', () => { this.log.warn('Web page becomes unresponsive') })
this.win.on('responsive', () => { this.log.warn('Web page becomes responsive again') })
Expand Down

0 comments on commit c022bcb

Please sign in to comment.