Bug 377056 - Double icon for pinned Krita, only one with recent documents
Summary: Double icon for pinned Krita, only one with recent documents
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (show other bugs)
Version: 5.9.3
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-01 11:50 UTC by Alex
Modified: 2017-03-03 18:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Icon with and without menu (1.00 MB, image/gif)
2017-03-01 11:50 UTC, Alex
Details
file:///usr/share/applications/org.kde.krita.desktop (3.69 KB, application/x-desktop)
2017-03-03 16:40 UTC, Alex
Details
xprop from krita window (24.63 KB, text/plain)
2017-03-03 16:42 UTC, Alex
Details
file:///usr/share/applications/krita_odg.desktop (1.20 KB, application/x-desktop)
2017-03-03 16:52 UTC, Alex
Details

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