diff --git a/src/main/index.ts b/src/main/index.ts index 7385336..f66193b 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -32,8 +32,8 @@ function createWindow(): void { }) // Linux taskbar icon - if (process.platform === 'linux') { - app.setIcon(iconPath) + if (process.platform === 'linux' && mainWindow) { + mainWindow.setIcon(nativeImage.createFromPath(iconPath)) } restoreAndTrack(mainWindow)