Skip to content

Commit 00ece50

Browse files
fix(win): set AppUserModelID so taskbar shows the DevDeck icon (#13)
On Windows the running process used Electron's default AppUserModelID, not matching the installer shortcut's ID (appId com.soursea.devdeck), so the taskbar fell back to the generic Electron icon after a restart cleared the icon cache. Call app.setAppUserModelId('com.soursea.devdeck') (win32-guarded) at the top of whenReady to restore the DevDeck icon. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 710ba0e commit 00ece50

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/main/main.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ if (!gotLock) {
4242
app.on('second-instance', showWindow);
4343

4444
app.whenReady().then(() => {
45+
// Match the installer shortcut's AppUserModelID (electron-builder sets it to
46+
// the appId) so Windows shows the DevDeck taskbar icon and groups windows
47+
// correctly. Without this the running process uses Electron's default ID and
48+
// the taskbar falls back to the generic Electron icon.
49+
if (process.platform === 'win32') app.setAppUserModelId('com.soursea.devdeck');
4550
const store = new Store(path.join(app.getPath('userData'), 'state.json'));
4651
const w = createWindow();
4752
win = w;

0 commit comments

Comments
 (0)