Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 593084 - kde-plasma/plasma-workspace: chromium taskmanager tracking
Summary: kde-plasma/plasma-workspace: chromium taskmanager tracking
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: https://cgit.kde.org/plasma-workspace...
Whiteboard: fixed in 5.8.5
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-07 22:04 UTC by pereira.alex
Modified: 2017-01-17 18:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Changed chromium-browser-chromium.desktop file (chromium.desktop,360 bytes, application/x-desktop)
2016-09-07 22:04 UTC, pereira.alex
Details
Changed chromium launcher script (chromium.sh,1.16 KB, application/x-shellscript)
2016-09-07 22:05 UTC, pereira.alex
Details
Changed kmail desktop file that makes taskmanager properly track kmail (org.kde.kmail-2.desktop,729 bytes, application/x-desktop)
2016-09-07 22:05 UTC, pereira.alex
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pereira.alex 2016-09-07 22:04:36 UTC
Created attachment 445172 [details]
Changed chromium-browser-chromium.desktop file

Hi,

The new version of Plasma 5 taskmanager has the ability to track apps in relation to pinned launchers.

Example: If you pin dolphin launcher in taskmanager and then launch it, it will use the pinned icon/entry.

Unfortunatly for this to work, it seems its needed that the apps .desktop file is correct.

There are some apps in gentoo that i noticed that don't work, namelly chromium apps and kmail.

Example: If one create a chromium app and create a desktop launcher for it and pin it to the taskmanager, It will create a new chromium icon and ignore the pinned entry. Kmail will also do this.

In other distributions, Plasma's taskmanager is able to separate and track chromium browser and the different chromium app's icons.

I was able to fix this in gentoo and make gentoo's plasma taskmanager track each chromium launcher/app separatly, as the same with kmail, but i had to change the .desktop files. In attachment, the changes i did.

Is it possible to correct the gentoo's desktop files so that it works with kde plasma's taskmanager ?

Thanks !

PS: More info here: https://github.com/psifidotos/nowdock-plasmoid/issues/24, where I first noticed the problem.
Comment 1 pereira.alex 2016-09-07 22:05:11 UTC
Created attachment 445174 [details]
Changed chromium launcher script
Comment 2 pereira.alex 2016-09-07 22:05:38 UTC
Created attachment 445176 [details]
Changed kmail desktop file that makes taskmanager properly track kmail
Comment 3 pereira.alex 2016-09-07 22:21:52 UTC
More info on what i did:

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

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"
Comment 4 Michael Palimaka (kensington) gentoo-dev 2016-11-16 17:46:31 UTC
I've seen this recent commit:

https://cgit.kde.org/plasma-workspace.git/commit/libtaskmanager/taskmanagerrulesrc?id=7c443aa53900521deab4fcd4641ea5273afc294e

Perhaps something similar is needed for chromium? That file is installed as /etc/xdg/taskmanagerrulesrc so it appears modifications are possible without requiring a rebuild,
Comment 6 pereira.alex 2017-01-17 18:07:25 UTC
Sorry for being away from this bug report, but is this really fixed? It isnt working on my system, even with plasma desktop git ebuilds