Bug 445339

Summary: WMClass missing and icon themes don't apply properly
Product: [Applications] kruler Reporter: finomeno <finomeno>
Component: generalAssignee: Mathias Soeken <soeken>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description finomeno@gmail.com 2021-11-11 14:34:50 UTC
SUMMARY
The kruler application does not declare a WMClass properly. Because of this, icon themes cannot be applied properly (at least outside KDE Plasma), and the running application displays a generic icon in the taskbar/dash.

STEPS TO REPRODUCE
1. Launch KRuler
2. See the icon for the running app in the dash/panel

OBSERVED RESULT
The running app displays a generic icon in the taskbar/dash.

EXPECTED RESULT
The running app should display the current theme's icon for that app in the taskbar/dash.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux, Gnome Shell 41.1, KDE Plasma 5.23.3
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 21.08.3
Qt Version: 5.15.2
This has been around forever, the software versions don't matter.

ADDITIONAL INFORMATION
Adding the following line to kruler.desktop file fixes this:

`StartupWMClass=BleachBit`

Can this be fixed please, so we don't have to redo it manually every time or create a local copy of the .desktop file in order to properly apply icon themes?