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

fix: set the app window icon on Linux #47

Merged
merged 1 commit into from
Nov 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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