Add "StartupWMClass" desktop file property to 2.10.x (cherry-pick from 2-99 branch)
Environment/Versions
- GIMP version: 2.10.36
- Package: Flatpak
- Operating System: Linux
Description of the bug
GIMP 2.10.x desktop file doesn't have "StartupWMClass" property. That makes impossible to "Pin"/"Add to favorites" running GIMP instance on taskbar/panel on desktop environments like KDE Plasma. This issue is already fixed in dev branches (Commit 1c2d1003). I believe it makes sense to cherry-pick this change to 2.10.38
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- On KDE Plasma install and laaunch GNU Image Manipulation Program v2.10
- Right click on the running GIMP taskbar item on the panel
…
Expected result: There is the "Pin to Task Manager" option
Actual result: "Pin to Task Manager" option is not available
Additional information
I can fix it by creating desktop file override (e.g., $HOME/.local/share/applications/org.gimp.GIMP.desktop
) and adding there line StartupWMClass=gimp-2.10
Downstream Flatpak issue: https://github.com/flathub/org.gimp.GIMP/issues/162
Edited by Yevhen Popok