From e12de51a75f1dbc87fed723fbd1802353ba60da8 Mon Sep 17 00:00:00 2001 From: R Midhun Suresh Date: Wed, 27 May 2026 21:22:27 +0530 Subject: [PATCH] Explicitly set StartupWMClass --- apps/desktop/electron-builder.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/desktop/electron-builder.ts b/apps/desktop/electron-builder.ts index 9bcd771a737..efa71b7789d 100644 --- a/apps/desktop/electron-builder.ts +++ b/apps/desktop/electron-builder.ts @@ -133,6 +133,15 @@ const config: Omit, "electronFuses"> & { category: "Network;InstantMessaging;Chat", icon: "icon.png", executableName: variant.name, // element-desktop or element-desktop-nightly + desktop: { + entry: { + // By default, electron builder will set this to variant.productName. + // But electron builder also sets the WM_CLASS of the window to variant.name. + // This difference will cause the app to launch with no icon and sometimes + // prevents app grouping in the taskbar. + StartupWMClass: variant.name, + }, + }, }, deb: { packageCategory: "net",