Skip to content

Add StartupWMClass to default desktop entry template #346

@jippylong12

Description

@jippylong12

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions