The default desktop.ejs template is missing the StartupWMClass field from the freedesktop.org desktop entry spec. Without it, some Linux desktop environments (notably Cinnamon, and in some cases GNOME) can't match a running application window to its .desktop entry, resulting in a duplicate icon in the taskbar.
The fix is a one-line addition to resources/desktop.ejs:
StartupWMClass=<%= name %>
Here's an example of an app patching this in locally to work around the missing field: ytmdesktop@914c6de (see patches/electron-installer-redhat+3.4.0.patch), stemming from ytmdesktop/ytmdesktop#339.
The default
desktop.ejstemplate is missing theStartupWMClassfield from the freedesktop.org desktop entry spec. Without it, some Linux desktop environments (notably Cinnamon, and in some cases GNOME) can't match a running application window to its.desktopentry, resulting in a duplicate icon in the taskbar.The fix is a one-line addition to
resources/desktop.ejs:Here's an example of an app patching this in locally to work around the missing field: ytmdesktop@914c6de (see
patches/electron-installer-redhat+3.4.0.patch), stemming from ytmdesktop/ytmdesktop#339.