Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #47 from 0xjac/fix/linux-app-icon
Browse files Browse the repository at this point in the history
fix: set the app window icon on Linux
  • Loading branch information
polarker authored Nov 5, 2021
2 parents 421bea5 + 0865ca8 commit 6ec730f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ function createWindow() {
titleBarStyle: process.platform === 'win32' ? 'default' : 'hidden'
})

if (process.platform === 'linux') {
mainWindow.setIcon(path.join(__dirname, "icons/logo-48.png"))
}

mainWindow.loadURL(isDev ? 'http://localhost:3000' : `file://${path.join(__dirname, '../build/index.html')}`)
if (isDev) {
// Open the DevTools.
Expand Down

0 comments on commit 6ec730f

Please sign in to comment.