From f347c0c2b9cd2942b1545ec200179d5ba204d4f2 Mon Sep 17 00:00:00 2001 From: Si Hyeong Lee Date: Mon, 8 Jun 2026 13:06:20 -0700 Subject: [PATCH] fix(win): set AppUserModelID so taskbar shows the DevDeck icon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Windows the running process used Electron's default AppUserModelID, which did not match the installer shortcut's ID (the appId, com.soursea.devdeck). Windows then fell back to the generic Electron icon in the taskbar — visible after a restart cleared the icon cache. Call app.setAppUserModelId('com.soursea.devdeck') (win32-guarded) at the top of whenReady to match the shortcut and restore the DevDeck icon. Co-Authored-By: Claude Opus 4.8 --- src/main/main.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/main.ts b/src/main/main.ts index 4070c19..70a0028 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -42,6 +42,11 @@ if (!gotLock) { app.on('second-instance', showWindow); app.whenReady().then(() => { + // Match the installer shortcut's AppUserModelID (electron-builder sets it to + // the appId) so Windows shows the DevDeck taskbar icon and groups windows + // correctly. Without this the running process uses Electron's default ID and + // the taskbar falls back to the generic Electron icon. + if (process.platform === 'win32') app.setAppUserModelId('com.soursea.devdeck'); const store = new Store(path.join(app.getPath('userData'), 'state.json')); const w = createWindow(); win = w;