K
K
Kostya Lakin2016-08-24 15:09:25
Chromium
Kostya Lakin, 2016-08-24 15:09:25

How to link icontasks plasma 5 icon and chromium window?

I use several different profiles for chromium and for each profile I would like a separate icon in the dockbar. The bottom line is that in almost every DU I encounter the same problem. It is difficult to associate a specific application with an icon on the dockbar. In unity I solved it by setting the correct WM_CLASS, in dockbarx there were a few code rules. Now it's plasma 5's turn. I tried all the solutions that I had before and nothing came of it.
.desktop file looks like this:

[Desktop Entry]
Type=Application
Terminal=false
StartupNotify=true
StartupWMClass=chromium-browser-chromium (/home/loki/.config/chromium-nyasha)
Exec=chromium-browser --class=chromium-nyasha --user-data-dir=/home/loki/.config/chromium-nyasha --profile-directory=Profile1 %U
Name=Nyasha
Icon=/home/loki/Изображения/flower.png
Name[ru_RU]=Nyasha
Categories=Network;

chromium window properties like so:
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 1162794782
WM_WINDOW_ROLE(STRING) = "browser"
WM_CLASS(STRING) = "chromium-browser-chromium (/home/loki/.config/chromium-nyasha)", "chromium-browser- chromium"
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_PID(CARDINAL) = 13548
WM_LOCALE_NAME(STRING) = "ru_RU.utf8"
WM_CLIENT_MACHINE(STRING) = "tux"
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW_P
now looks like this dl.dropboxusercontent.com/u/25725476/scree...
The flower icon is the same .desktop file, I clicked on it and chromium opened, which appeared at the end of the dockbar, and I would like it to be grouped with the same flower icon.
How to solve this problem? What am I missing?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kostya Lakin, 2016-08-24
@laki9

It turned out to deal with the rules in /etc/xdg/taskmanagerrulesrc
Added the following rule there:

[Rewrite Rules][chromium-browser-chromium][1]
Property=ClassName
Identifier=DesktopEntryName
Match=.config/chromium-(?'match'[a-z]+)
Target=chromium-%1

The .desktop file was renamed to chromium-nyasha.desktop
More information here https://phabricator.kde.org/D1673

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question