Bug 370205 - Clementine player has two different icons
Summary: Clementine player has two different icons
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: 5.8.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-06 17:55 UTC by Patrick Silva
Modified: 2016-10-10 08:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
demonstration (15.68 KB, image/png)
2016-10-06 17:55 UTC, Patrick Silva
Details
.desktop file (8.50 KB, application/x-desktop)
2016-10-08 15:07 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2016-10-06 17:55:17 UTC
Apps menu and panel show different icons for Clementine player. See the screenshot please.

Reproducible: Always


Actual Results:  
Apps menu and panel show different icons.

Expected Results:  
The same Clementine icon in apps menu and panel.
Comment 1 Patrick Silva 2016-10-06 17:55:54 UTC
Created attachment 101452 [details]
demonstration
Comment 2 andreas 2016-10-07 13:04:32 UTC
Same with virtualbox
Comment 3 Patrick Silva 2016-10-07 21:50:35 UTC
yes, I can confirm this affects virtualbox.
Same with nautilus, panel shows dolphin's icon.
And Gnome Maps has no icon in panel.
Comment 4 Eike Hein 2016-10-08 13:16:35 UTC
Please provide the following info in this ticket:

(a) xprop output for the Clementine window
(b) Pin Clementine to your Task Manager ("Show launcher when not running" in the context menu), then find your plasma-org.kde.plasma.desktop-appletsrc in $HOME/.config/ and find the Clementine launcher URL that was written there and paste it here
(c) Find the .desktop file your distro's package ship for Clementine and attach it
Comment 5 Patrick Silva 2016-10-08 15:06:29 UTC
a) xprop output
_NET_WM_ICON_GEOMETRY(CARDINAL) = 810, 730, 182, 36
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE
_KDE_NET_WM_FRAME_STRUT(CARDINAL) = 0, 0, 21, 0
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 21, 0
_NET_WM_DESKTOP(CARDINAL) = 0
_KDE_NET_WM_ACTIVITIES(STRING) = "312da388-fac3-4737-8dfb-7d8e469eb7d0"
WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
_NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ
_NET_WM_ICON(CARDINAL) =        Icon (64 x 64):                                                                                                                                        
_NET_WM_ICON_NAME(UTF8_STRING) = 
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 1807617
XdndAware(ATOM) = BITMAP
WM_NAME(STRING) = "Clementine"
_NET_WM_NAME(UTF8_STRING) = "Clementine"
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x3e, 0x7e, 0x0, 0x0
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_XEMBED_INFO(_XEMBED_INFO) = 0x0, 0x1
WM_CLIENT_LEADER(WINDOW): window id # 0xa00007
WM_HINTS(WM_HINTS):
                Client accepts input or input focus: True
                Initial state is Normal State.
_NET_WM_PID(CARDINAL) = 3019
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 10485770
WM_CLASS(STRING) = "clementine", "Clementine-qt5"
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_NORMAL_HINTS(WM_SIZE_HINTS):
                user specified location: 0, 0
                user specified size: 1131 by 685
                program specified minimum size: 623 by 203
                window gravity: NorthWest

b) launchers=file:///usr/bin/clementine?
c) Done.
Comment 6 Patrick Silva 2016-10-08 15:07:14 UTC
Created attachment 101490 [details]
.desktop file
Comment 7 Eike Hein 2016-10-09 09:50:59 UTC
Ok, basically mapping the window to a system-installed app fails because the .desktop file name is clementine.desktop but the WM_CLASS is Clementine-qt5, so it falls back to the executable name and an inferior icon code path. Please report this to the involved parties (either the distro or the Clementine devs, depending on who screwed this up :) - if that's addressed the icon will be the same again.
Comment 8 Patrick Silva 2016-10-09 18:11:00 UTC
Thank you, Elke.
What about nautilus and virtualbox?
Do I need create new bug repots to the same bug affecting these programs?
Comment 9 Eike Hein 2016-10-10 08:57:24 UTC
Feel free to file separate tickets with the same info (it takes case-by-case investigation).