Skip to content

Commit

Permalink
Add Linux icon. Fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo authored and shiftkey committed Dec 16, 2017
1 parent 251c0af commit f262da7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/main-process/app-window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { URLActionType } from '../lib/parse-app-url'
import { ILaunchStats } from '../lib/stats'
import { menuFromElectronMenu } from '../models/app-menu'
import { now } from './now'
import * as path from 'path'

let windowStateKeeper: any | null = null

Expand Down Expand Up @@ -59,6 +60,10 @@ export class AppWindow {
windowOptions.frame = false
}

if (__LINUX__) {
windowOptions.icon = path.join(__dirname, 'icon-logo.png')
}

this.window = new BrowserWindow(windowOptions)
savedWindowState.manage(this.window)

Expand Down
Binary file added app/static/linux/icon-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f262da7

Please sign in to comment.