Browse Source

Set BrowserWindow icon

This makes Linux display icon in dock/<C-Tab>
master
meriadec 7 years ago
parent
commit
c9332d9ab8
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 6
      src/main/app.js
  2. BIN
      static/images/linux-app-icon-512x512.png

6
src/main/app.js

@ -11,6 +11,7 @@ import {
import menu from 'main/menu'
import db from 'helpers/db'
import { i } from 'helpers/staticPath'
import { terminateAllTheThings } from './terminator'
@ -65,6 +66,11 @@ const saveWindowSettings = window => {
}
const defaultWindowOptions = {
// Linux require window to have icon to be correctly displayed
// in docks, when using <C-tab>, etc.
// see https://github.com/electron-userland/electron-builder/issues/2269<Paste>
icon: i('linux-app-icon-512x512.png'),
backgroundColor: '#fff',
webPreferences: {
devTools,

BIN
static/images/linux-app-icon-512x512.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Loading…
Cancel
Save