Bug 383312 - Weird Kmail icon when pinned in taskmanager
Summary: Weird Kmail icon when pinned in taskmanager
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: 5.10.4
Platform: openSUSE Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-09 13:13 UTC by flyos
Modified: 2017-08-10 07:04 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Kmail is not activated, weird icon (8.96 KB, image/png)
2017-08-09 13:13 UTC, flyos
Details
Kmail is activated, normal icon (10.26 KB, image/png)
2017-08-09 13:14 UTC, flyos
Details
Output of xprop on Kmail (39.63 KB, text/plain)
2017-08-09 14:42 UTC, flyos
Details

Note You need to log in before you can comment on or make changes to this bug.
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.