Skip to content

Fix WM_CLASS for correct icon matching in docks and taskbars#132

Open
newman2x wants to merge 1 commit intolinuxmint:masterfrom
newman2x:fix-wmclass-icon
Open

Fix WM_CLASS for correct icon matching in docks and taskbars#132
newman2x wants to merge 1 commit intolinuxmint:masterfrom
newman2x:fix-wmclass-icon

Conversation

@newman2x
Copy link
Copy Markdown

When mintreport is launched, its WM_CLASS is reported as "app.py"/"App.py"
because the entry point script is named app.py. This causes dock and taskbar
applications (such as xfce4-docklike-plugin) to fail to match the window to
its .desktop entry, resulting in a missing or incorrect icon.

Changes:

  • Added GLib.set_prgname("mintreport") in app.py to correctly identify
    the application at the GTK level
  • Added StartupWMClass=Mintreport to mintreport.desktop as a fallback
    for dock/taskbar matching

Tested on Linux Mint 22.3 XFCE with xfce4-docklike-plugin.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant