Skip to content

Conversation

@murataslan1
Copy link

Summary

This PR fixes the Ubuntu dock icon showing as a gear icon instead of the draw.io icon on Ubuntu 24.04.

Problem

The .desktop file generated by electron-builder sets StartupWMClass=drawio, but the application actually uses draw.io as its WM class. This mismatch causes the dock to not recognize the running application and display a generic gear icon.

Solution

Added desktop.StartupWMClass configuration to the Linux build configs:

  • electron-builder-linux-mac.json (for deb, rpm, AppImage)
  • electron-builder-snap.json (for Snap)

This sets StartupWMClass=draw.io to match the actual WM class used by the application.

Testing

After this change, the .desktop file will contain:

StartupWMClass=draw.io

Which matches the output of:

$ xprop | grep WM_CLASS
WM_CLASS(STRING) = "draw.io", "draw.io"

Fixes #1745

Set StartupWMClass to 'draw.io' to match the actual WM class used by
the application. This fixes the dock icon showing as a gear instead
of the draw.io icon on Ubuntu 24.04.

Fixes jgraph#1745
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No Dock Icon(but gear icon) on Ubuntu 24.04

1 participant