Bug 377056

Summary: Double icon for pinned Krita, only one with recent documents
Product: [Plasma] plasmashell Reporter: Alex <eneeen>
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Eike Hein <hein>
Status: RESOLVED FIXED    
Severity: normal CC: kde, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.9.3   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Icon with and without menu
file:///usr/share/applications/org.kde.krita.desktop
xprop from krita window
file:///usr/share/applications/krita_odg.desktop

Description Alex 2017-03-01 11:50:49 UTC
Created attachment 104291 [details]
Icon with and without menu

It's been working fine in 5.9.2, there was one icon with recent documents under right click. Now when I pin Krita from launcher icon is doubled, one that starts app (and keeps recent docs menu) and second one after starting app without menu. When I pin only icon created after startup documents menu isn't there.
Comment 1 Eike Hein 2017-03-03 16:07:16 UTC
Please provide the following info:

(a) the .desktop file name for Krita on your system (likely in /usr/share/applications)

(b) the launchers=... line from your $HOME/.config/plasma-org.kde.plasma.desktop-appletsrc

(c) xprop output for the Krita window
Comment 2 Alex 2017-03-03 16:40:53 UTC
Created attachment 104344 [details]
file:///usr/share/applications/org.kde.krita.desktop
Comment 3 Alex 2017-03-03 16:42:20 UTC
Created attachment 104345 [details]
xprop from krita window
Comment 4 Alex 2017-03-03 16:51:18 UTC
launchers=file:///usr/share/applications/krita_odg.desktop,file:///usr/share/applications/org.kde.krita.desktop
Comment 5 Alex 2017-03-03 16:52:17 UTC
Created attachment 104347 [details]
file:///usr/share/applications/krita_odg.desktop
Comment 6 Alex 2017-03-03 17:17:02 UTC
Menu is shown with this launcher:
file:///usr/share/applications/org.kde.krita.desktop
Comment 7 Eike Hein 2017-03-03 17:32:17 UTC
So according to your config, you simply have two launchers for Krita on your TM, one to that weird "odg" .desktop file ... remove one of the launchers?
Comment 8 Alex 2017-03-03 17:53:18 UTC
Sure I did, but when I start krita second icon appears so I pin second one and remove other but then I loose menu. So choice is: two icons or one without menu.
Comment 9 Eike Hein 2017-03-03 18:00:56 UTC
I can reproduce this problem now, for some reason when pinning we pick krita_odg.desktop over the other .desktop file.
Comment 10 Eike Hein 2017-03-03 18:12:56 UTC
Patch under review: https://phabricator.kde.org/D4928
Comment 11 Eike Hein 2017-03-03 18:36:47 UTC
Fixed by 8028a500e3b2 (and up-merges) in plasma-workspace. The fix will be in the next round of 5.8.x and 5.9.x bugfix releases.