From dd7654c25425f4fb20207ba68ef2dac9c4f84a62 Mon Sep 17 00:00:00 2001 From: DhanushSantosh Date: Thu, 26 Feb 2026 18:14:08 +0530 Subject: [PATCH] fix: set desktop name on Linux so taskbar uses the correct app icon Without app.setDesktopName(), the window manager cannot associate the running Electron process with automaker.desktop. GNOME/KDE fall back to _NET_WM_ICON which defaults to Electron's own bundled icon. Calling app.setDesktopName('automaker.desktop') before any window is created sets the _GTK_APPLICATION_ID hint and XDG app_id so the WM picks up the desktop entry's Icon for the taskbar. Co-Authored-By: Claude Sonnet 4.6 --- apps/ui/src/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/ui/src/main.ts b/apps/ui/src/main.ts index 80a2e837..a4c8b667 100644 --- a/apps/ui/src/main.ts +++ b/apps/ui/src/main.ts @@ -53,6 +53,10 @@ if (isDev) { // Must be set before app.whenReady() — has no effect on macOS/Windows. if (process.platform === 'linux') { app.commandLine.appendSwitch('ozone-platform-hint', 'auto'); + // Link the running process to its .desktop file so GNOME/KDE uses the + // desktop entry's Icon for the taskbar instead of Electron's default. + // Must be called before any window is created. + app.setDesktopName('automaker.desktop'); } // Register IPC handlers