Bug 368425 - Taskmanager and app launcher/window tracking
Summary: Taskmanager and app launcher/window tracking
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: 5.7.4
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-07 22:21 UTC by Alexandre Pereira
Modified: 2016-09-08 16:17 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Pereira 2016-09-07 22:21:20 UTC
Hi,

Plasma taskmanager has the ability to track apps and pinned launchers. For example, is able to  track chromium browser window and chromium apps launchers separately or pinning dolphin launcher and opening the app, it will use the pinned launcher icon/entry and not duplicate the icons.

I noticed that in some distributions this works, but others does not. In my testing, in Arch Linux it works but not in Gentoo and i think openSUSE also.

The problem is the configuration of the *.desktop files. I was able to make it all work on Gentoo, but I had to change the *.desktop files of the apps.

I noticed that chromium and kmail are not working. 

In kmail, it works if one changes the command line from 'Exec=kmail -qwindowtitle %c %u' into 'Exec=kmail'.

In Gentoo, to make chromium work, i had to do the following changes:
On chromium desktop file:
 [Desktop Entry]
 Name=Chromium
 Type=Application
-Comment=Open-source version of Google Chrome web browser
-Exec=chromium-browser %U
-TryExec=chromium-browser
+Comment=Open-source Chromium browser
+Exec=chromium %U
+TryExec=chromium
 Icon=chromium-browser
 Categories=Network;WebBrowser;
 MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/mailto;x-scheme-handler/webcal;
-StartupWMClass=chromium-browser
+StartupWMClass=chromium

and to the chromium launcher:
-export CHROME_DESKTOP="chromium-browser-chromium.desktop"
+export CHROME_DESKTOP="chromium.desktop"


Is this a problem of the distribution or a kde/plasma problem ?
Where should this be fixed?

Thanks !

Reproducible: Always
Comment 1 Alexandre Pereira 2016-09-07 22:22:41 UTC
PS: More info here: https://github.com/psifidotos/nowdock-plasmoid/issues/24, where I first noticed the problem.
Comment 2 Eike Hein 2016-09-08 16:17:55 UTC
It's the distro's or app dev's duty to make the window meta data and menu id (.desktop name) align so task managers can map one to the other. The KMail devs were informed about their bug some time ago ... there's a ticket for KMail somewhere.