Bug 355035

Summary: Icons-only task manager confused by Chromium (windows not properly recognised)
Product: [Plasma] plasmashell Reporter: jm.ouwerkerk
Component: Icons-only Task ManagerAssignee: Eike Hein <hein>
Status: RESOLVED WORKSFORME    
Severity: normal CC: plasma-bugs-null
Priority: NOR Keywords: triaged
Version First Reported In: 5.4.2   
Target Milestone: 1.0   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: What happens when using the pinned launcher
Icons only task manager being confused by 'real' chromium windows

Description jm.ouwerkerk 2015-11-08 14:47:25 UTC
When launching a new instance of chromium using either the kickoff/menu applet or a pinned/favourited launcher in the  icons only task manager, the newly spawned chromium windows are not properly recognised by the  icons-only task manager.

Issues:

 * The proper program icon is not displayed in the task bar (it is set properly on the window decorations/frame itself)
 * Clicking "start new instance" will actually launch attempt to open the ELF binary rather than execute it (symptom: it loads the ELF binary in okteta). Related: "chromium" will subsequently feature in the "recent documents".
 * Multiple instances of chromium are not grouped together, despite my preferences configured in icons-only task manager settings.


Reproducible: Always

Steps to Reproduce:
1. Install chromium
2. Configure a panel with an icons-only task manager
3. Launch chromium
4. Use the icons-only task manager to launch a new instance


Expected Results:  
I'd expected the windows to appear in the icons-only task manager with the chromium icon, and be grouped together (same application, after all).

This is a regression.
Comment 1 jm.ouwerkerk 2015-11-08 14:49:14 UTC
Note that previous (KDE4) incarnations of the icons-only task manager permitted custom rules/trickery to 'force' the mapping of windows to icons for this very reason (c.f. untangling the mess of Java Swing applications)
Comment 2 Eike Hein 2015-11-09 02:50:15 UTC
Can't reproduce here.

Please provide xwininfo and xprop output for the various Chromium windows involved and also check "Show a launcher when not running" for one of them and post the launchers= key from ~/.config/plasma-org.kde.plasma.desktop-appletsrc
Comment 3 jm.ouwerkerk 2015-11-09 13:39:41 UTC
xwininfo                                                                                                                                                                                                                                                 
                                                                                                                                                                                                                                                                               
xwininfo: Please select the window about which you                                                                                                                                                                                                                             
          would like information by clicking the                                                                                                                                                                                                                               
          mouse in that window.                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                               
xwininfo: Window id: 0x3e00001 "Bug 355035 – Icons-only task manager confused by Chromium (windows not properly recognised) - Chromium"                                                                                                                                        
                                                                                                                                                                                                                                                                               
  Absolute upper-left X:  0                                                                                                                                                                                                                                                    
  Absolute upper-left Y:  29                                                                                                                                                                                                                                                   
  Relative upper-left X:  0                                                                                                                                                                                                                                                    
  Relative upper-left Y:  0                                                                                                                                                                                                                                                    
  Width: 1920                                                                                                                                                                                                                                                                  
  Height: 1051                                                                                                                                                                                                                                                                 
  Depth: 24
  Visual: 0x20
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x22 (installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+29  -0+29  -0-0  +0-0
  -geometry 1920x1051+0+0

xprop
XdndTypeList(ATOM) = STRING, TEXT, UTF8_STRING, text/plain, chromium/x-renderer-taint
_NET_WM_USER_TIME(CARDINAL) = 11171821
_NET_WM_ICON_GEOMETRY(CARDINAL) = 243, 1049, 39, 27
_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, 29, 0
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 29, 0
_NET_WM_DESKTOP(CARDINAL) = 0
_KDE_NET_WM_ACTIVITIES(STRING) = "8cf37064-7a98-45ca-a51b-7fc5d77d67ea"
WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
_NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ
WM_NORMAL_HINTS(WM_SIZE_HINTS):
                program specified location: 10, 39
                program specified minimum size: 468 by 85
WM_NAME(UTF8_STRING) = "Bug 355035 – Icons-only task manager confused by Chromium (windows not properly recognised) - Chromium"
_NET_WM_NAME(UTF8_STRING) = "Bug 355035 – Icons-only task manager confused by Chromium (windows not properly recognised) - Chromium"
XdndAware(ATOM) = BITMAP
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x0, 0x1, 0x0, 0x0
_NET_WM_ICON(CARDINAL) =        Icon (64 x 64):
                                                                        
                                                                        
                                                                        
                                 ░░▒▒▒▒▒▒▒▒▒▒░░                         
                              ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░                      
                           ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░                   
                         ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░                 
                        ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░                
                      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░              
                     ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░             
                    ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░            
                   ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░           
                  ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░          
                 ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░         
                ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░        
                ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒        
               ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒       
              ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░      
              ░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░      
             ░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░         ░░░░░░░░░░░░░░░░░░░░░      
             ░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░             ░░░░░░░░░░░░░░░░░░░░     
            ░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒░      ░░░░      ░░░░░░░░░░░░░░░░░░░     
            ░░░░░░░▒▒▒▒▒▒▒▒▒▒▒░    ░░░░░░░░░░    ░░░░░░░░░░░░░░░░░░     
            ░░░░░░░░▒▒▒▒▒▒▒▒▒░    ░░░░░░░░░░░░    ░░░░░░░░░░░░░░░░░░    
           ░░░░░░░░░▒▒▒▒▒▒▒▒▒   ░░░░░░░░░░░░░░░░   ░░░░░░░░░░░░░░░░░    
           ░░░░░░░░░░▒▒▒▒▒▒▒    ░░░░░░░░░░░░░░░░    ░░░░░░░░░░░░░░░░    
           ░░░░░░░░░░▒▒▒▒▒▒▒   ░░░░░░░░░░░░░░░░░░   ░░░░░░░░░░░░░░░░    
           ░░░░░░░░░░░▒▒▒▒▒░  ░░░░░░░░░░░░░░░░░░░░   ░░░░░░░░░░░░       
           ░░░░░░░░░░░▒▒▒▒▒   ░░░░░░░░░░░░░░░░░░░░   ░░░░░░             
           ░░░░░░░░░░░░▒▒▒▒   ░░░░░░░░░░░░░░░░░░░░    ░                 
           ░░░░░░░░░░░░░▒▒░  ░░░░░░░░░░░░░░░░░░░░░░                     
           ░░░░░░░░░░░░░▒▒░  ░░░░░░░░░░░░░░░░░░░░░░                 ░   
           ░░░░░░░░░░░░░░▒░  ░░░░░░░░░░░░░░░░░░░░░░                 ░   
           ░░░░░░░░░░░░░░▒░  ░░░░░░░░░░░░░░░░░░░░░░                 ░   
           ░░░░░░░░░░░░░░░▒   ░░░░░░░░░░░░░░░░░░░░                 ░░   
           ░░░░░░░░░░░░░░░░   ░░░░░░░░░░░░░░░░░░░░                 ░░   
           ░░░░░░░░░░░░░░░░░  ░░░░░░░░░░░░░░░░░░░░                ░░░   
           ░░░░░░░░░░░░░░░░░   ░░░░░░░░░░░░░░░░░░                ░░░    
           ░░░░░░░░░░░░░░░░░    ░░░░░░░░░░░░░░░░                 ░░░    
           ░░░░░░░░░░░░░░░░░░   ░░░░░░░░░░░░░░░░   ░            ░░░░    
            ░░░░░░░░░░░░░░░░░░    ░░░░░░░░░░░░                  ░░░░    
            ░░░░░░░░░░░░░░░░░░░    ░░░░░░░░░░    ░             ░░░░     
            ░░░░░░░░░░░░░░░░░░░░      ░░░░      ░░            ░░░░░     
             ░░░░░░░░░░░░░░░░░░░░              ░░            ░░░░░      
             ░░░░░░░░░░░░░░░░░░░░░░          ░░░             ░░░░░      
              ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░            ░░░░░░      
              ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░            ░░░░░░       
               ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░           ░░░░░░        
                ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░           ░░░░░░░        
                ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░          ░░░░░░░         
                 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░          ░░░░░░░          
                  ░░░░░░░░░░░░░░░░░░░░░░░░░░          ░░░░░░░           
                   ░░░░░░░░░░░░░░░░░░░░░░░░░        ░░░░░░░░            
                    ░░░░░░░░░░░░░░░░░░░░░░░        ░░░░░░░░             
                     ░░░░░░░░░░░░░░░░░░░░░░       ░░░░░░░░              
                      ░░░░░░░░░░░░░░░░░░░░      ░░░░░░░░░               
                        ░░░░░░░░░░░░░░░░░░     ░░░░░░░░                 
                         ░░░░░░░░░░░░░░░░    ░░░░░░░░░                  
                           ░░░░░░░░░░░░░   ░░░░░░░░░                    
                             ░░░░░░░░░░░ ░░░░░░░░                       
                                ░░░░░░░░░░░░░                           
                                                                        
                                                                        
                                                                        


WM_WINDOW_ROLE(STRING) = "browser"
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 41069
WM_CLASS(STRING) = "chromium-browser", "chromium-browser"
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_PID(CARDINAL) = 1227
WM_LOCALE_NAME(STRING) = "en_GB.UTF-8"
WM_CLIENT_MACHINE(STRING) = "Lailaps"
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, _NET_WM_PING
Comment 4 jm.ouwerkerk 2015-11-09 13:43:05 UTC
cat ~/.config/plasma-org.kde.plasma.desktop-appletsrc|grep launchers
launchers=file:///usr/share/applications/kde4/konsole.desktop?wmClass=konsole,file:///usr/share/applications/org.kde.kate.desktop?wmClass=kate,file:///usr/share/applications/org.kde.dolphin.desktop?wmClass=dolphin,file:///usr/share/applications/chromium.desktop?wmClass=Chromium,file:///usr/lib/chromium/chromium?wmClass=chromium-browser&name=chromium&iconData=iV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ph9gwLyZRdVTdWYsADgHKcHUc_n_p2I3wNCdh-Mzne2OgSV5Wa_ii5GdBVnXc9sKfArouF87ugdBOzSx3wRdfbj3T7n20lajh-m_pO8MktQ4dVSa303EpQ5DpHbIejhoXW0J6CZsaVn8lC-1-gxEoteTW3vZJ7OMvpG--4lsYbwALQwpeiT93Ts89z9YqSWyo1lQjWYSVcrFnB0xpSKwwNtNfPMhvkA07JfS1NmWtvXUOfNNNFoAUCAEOCdWb0cmfCOVMdcSKOCKm9xVpDuy6gFVYs7KgKfJGV49phoFQovSjSmetaAQ-0SAAAPL5l9oelwc5eN1_ay0o1HKz1OGHWUIqRa2d05dIRGpMrT5o-nZJ2XfX3x65vv6FZtw_LeW2xb_ynU1u0xIPpTNpGo7FbI6wUtOfBKRRx41U5UOTbjvhLZoYz4b4jUvLOzavTL59L_4Fz8ICwPHVfzz9mHdFbKBV3Kc9pvqK_M6SUizl9ElaiBnyE1auzO2dcOe4W7mtbeD7ggSl8yXLbtpPzPcVPWiyXylSa6rWsfeurwlmsu6YXKkh5Y5InwIxzt1AcgZTfy6QyD29cSS39MCJOpvxncxt-NNFHZ_MPgeybbEt2CmkFX9EC8DM05UF7HhbNkuifngHHrPWZAa-Y1xryNyB6grvafl67nj9fuaA_nLxt28n5rkt3e8Jdm0BiSCidghSkNUN4DlZdlVEW0pL9VFJpjZKrxon4kC3FHs3yJdGW3rl5BQ1fqD5e5J_OAqv_9vU-20FfVoqOGZ2l4QQsne3uySfsbCHVPjrxNzcPFRq38ql8KlMl_wsuhpsBjo3EhwAAAABJRU5ErkJggg%3D%3D
Comment 5 jm.ouwerkerk 2015-11-09 13:45:21 UTC
Note the  last launchers entry:
> file:///usr/lib/chromium/chromium?wmClass=chromium-browser&name=chromium

It points the /usr/lib/chromium/chromium ELF file instead of the /usr/share/applications/chromium.desktop file (which you'd expect). Also note the name 'chromium' doesn't align with the .desktop entry  which specifies "Chromium Web Browser" as the value for the relevant key.

Finally, note that the icon data is ever so subtly slightly more saturated than the 'true' chromium launcher icon.
Comment 6 jm.ouwerkerk 2015-11-09 13:50:28 UTC
Created attachment 95401 [details]
What happens when using the pinned launcher

A screenshot of what happens when I use the "Show a Launcher when not running" feature, then 'launch' chromium from the newly pinned launcher. Note the different app icons, too.
Comment 7 jm.ouwerkerk 2015-11-09 13:52:36 UTC
Created attachment 95402 [details]
Icons only task manager being confused by 'real' chromium windows

A screenshot depicting what happens when launching chromium from the 'real' chromium launcher or through the menu or krunner. Also note the missing app icon, despite the window itself providing one.
Comment 8 jm.ouwerkerk 2015-11-09 14:03:56 UTC
By editing the wmClass parameter of the 'real' chromium browser to 'chromium-browser' instead of the old value, icons-only taskmanager recognises the window again.

I had to log out and log back in for the changes to take effect though.
Comment 9 jm.ouwerkerk 2015-11-09 14:11:10 UTC
Removing the 'fixed' launcher, then launching chromium from the menu or krunner also 'breaks' the icons-only task manager.

Re-fixing the appletsrc file and chromium is, again, recognised by the icons-only taskmanager when launched from the menu or krunner.

Three things stand out:

1. The differing values for the wmClass parameter.
2. By itself, icons-only task manager attributes chromium windows to the binary /usr/lib/chromium/chromium instead of the desktop file /usr/share/applications/chromium.desktop
3. The name of the chromium.desktop file does not conform to the reverse domain naming scheme.
Comment 10 Eike Hein 2015-11-09 14:21:48 UTC
Basically this happens because Chromium sets a wm class of chromium-browser but has a menu id of chromium, so the Task Manager isn't able to map the window back to the application. Installing the .desktop file as chromium-browser.desktop would fix this.
Comment 11 jm.ouwerkerk 2015-11-09 14:38:51 UTC
Except that once you manually fix the wmClass parameter things 'work' again.

So it seems as if icons-only task manager first attempts the 'known' wmClass keys from the launchers, then if that fails inputs the wmClass directly as a lookup key in some "lookup desktop by id" function -- which fails because chromium-browser.desktop does not exist?

Could icons-only task manager feasibly be taught to fall back a second time to input the executable as key in some "lookup desktop by binary" function?
Comment 12 Eike Hein 2015-11-09 14:55:48 UTC
You got the above backwards. The laucher URL is created from the window, not the other way around. In creating it it will try very hard to map it to a .desktop file since that has various benefits, but that fails here. There are similar problems with Google Chrome which we already ship exception workarounds for. I'm not too keen to add another, so I'd suggest you suggest to your package provider they install the .desktop file as chromium-browser.
Comment 13 Andrew Crouthamel 2018-09-25 21:50:37 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 14 Andrew Crouthamel 2018-10-27 02:48:13 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!