Skip to content

Commit 7fb72a5

Browse files
arunrajiahclaude
andcommitted
fix: show gS icon in macOS Dock during dev mode
BrowserWindow icon is ignored on macOS — the Dock reads from the app bundle .icns (set by electron-builder at package time). Added app.dock.setIcon() call in dev mode so the gS monogram appears in the Dock during npm run dev. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 81d9a0c commit 7fb72a5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/main/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ function createWindow(): void {
2929

3030
mainWindow.on('ready-to-show', () => mainWindow!.show())
3131

32+
// Set Dock icon on macOS in dev mode (packaged builds use the .icns from electron-builder)
33+
if (process.platform === 'darwin' && is.dev) {
34+
app.dock?.setIcon(join(__dirname, '../../build/icon.png'))
35+
}
36+
3237
mainWindow.webContents.setWindowOpenHandler(({ url }) => {
3338
shell.openExternal(url)
3439
return { action: 'deny' }

0 commit comments

Comments
 (0)