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",