Bug 383312

Summary: Weird Kmail icon when pinned in taskmanager
Product: [Plasma] plasmashell Reporter: flyos
Component: Task Manager and Icons-Only Task ManagerAssignee: Eike Hein <hein>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: kde, plasma-bugs
Priority: NOR    
Version: 5.10.4   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Kmail is not activated, weird icon
Kmail is activated, normal icon
Output of xprop on Kmail

Description flyos 2017-08-09 13:13:44 UTC
Created attachment 107178 [details]
Kmail is not activated, weird icon

When Kmail is pinned in the task manager but not activated (i.e. no window shown), the icon become the white blank paper icon (default icon I imagine?). When Kmail is activated (e.g. some window exists), the icon is normal again.

This behaviour is reproducible in the classical, icon-only and latte-dock task managers.

Step to reproduce:
- Open Kmail, icon is normal in the task manager
- Pin Kmail to be shown in the task manager when closed, icon still normal
- Close Kmail window
- Kmail icon is now the default blank paper icon
- Click on this icon or open Kmail window in any other way
- Kmail window opens and the icon is back to its good old self

Some system information:
- openSUSE Tumbleweed
- Plasma 5.10.4
- KF5: 5.36.0
- Qt: 5.9.1
- Intel graphic chipset with Mesa driver
Comment 1 flyos 2017-08-09 13:14:28 UTC
Created attachment 107179 [details]
Kmail is activated, normal icon
Comment 2 Kai Uwe Broulik 2017-08-09 14:35:58 UTC
From what I recall KMail has a wrong window class and thus mapping to its desktop file fails.
Comment 3 flyos 2017-08-09 14:42:05 UTC
It could be the case, indeed. Using xprop on Kmail window states that Kmail's desktop file is "org.kde.kmail2", but a locate on my system for this doesn't yield anything. However, locate org.kde.kmail does yield:
/usr/share/applications/org.kde.kmail.desktop
/usr/share/dbus-1/interfaces/org.kde.kmail.kmail.xml
/usr/share/dbus-1/interfaces/org.kde.kmail.kmailpart.xml
/usr/share/metainfo/org.kde.kmail.appdata.xml

Is this a packaging bug that I should report to openSUSE?
Comment 4 flyos 2017-08-09 14:42:34 UTC
Created attachment 107180 [details]
Output of xprop on Kmail
Comment 5 Eike Hein 2017-08-10 07:04:24 UTC
This was fixed in KMail, but I guess the version with the renamed .desktop file wasn't released yet.