Browse Source
Set BrowserWindow icon
This makes Linux display icon in dock/<C-Tab>
master
meriadec
7 years ago
No known key found for this signature in database
GPG Key ID: 1D2FC2305E2CB399
2 changed files with
6 additions and
0 deletions
-
src/main/app.js
-
BIN
static/images/linux-app-icon-512x512.png
|
|
@ -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, |
|
|
|
Width:
|
Height:
|
Size: 44 KiB
|