Bug 393576 - Pin to TaskManager works incorrectly with gnome-terminal
Summary: Pin to TaskManager works incorrectly with gnome-terminal
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-27 14:46 UTC by trmdi
Modified: 2018-04-27 14:56 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description trmdi 2018-04-27 14:46:51 UTC
Steps to reproduce:
 - Launch gnome-terminal from Application Menu
 - Right click on its TaskManager item on the panel > Pin
 - Close the gnome-terminal and click on that pinned icon.

Expected result:
 - gnome-terminal launches

Actual result:
 - gnome-terminal will NOT launch


Read more here: https://github.com/psifidotos/Latte-Dock/issues/996#issuecomment-384974270
Comment 1 Eike Hein 2018-04-27 14:56:38 UTC
This is a bug in Gnome Terminal. It's WM_CLASS is "Gnome-terminal" but its .desktop file is "org.gnome.Terminal.desktop", which doesn't match up (neither absolute nor the part after org.gnome.*). The .desktop file also doesn't set an appropriate StartupWMClass to mitigate this. Finally, our fallback codepaths for handling non-standard-compliant apps (such as getting the command out of /proc and matching it up with Exec keys in the .desktop db) fail due to its architecture (the actual thing running is gnome-terminal-server).