Summary: | task manager grouping by program does not work | ||
---|---|---|---|
Product: | [Unmaintained] plasma4 | Reporter: | Jason Vas Dias <jason.vas.dias> |
Component: | widget-taskbar | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | hein, lengau |
Priority: | NOR | ||
Version: | 4.11.11 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
desktop file for xterm-for-top
desktop file for other xterm instances Example of xterm '-class' workaround. |
Description
Jason Vas Dias
2014-10-30 13:05:26 UTC
Created attachment 89379 [details]
desktop file for xterm-for-top
Here's an example, trying to create an icon for xterm running the 'top' program that does NOT
group with other instances of xterm .
I copied the xterm desktop file to 'top.desktop', and copied /usr/bin/xterm to /usr/bin/xterm-for-top
, and ps shows programs created by clicking on this icon they under totally distinct names:
jvasdias 3658 2968 0 12:07 ? 00:00:00 /usr/bin/xterm -fa Andale Mono -fs 10 -fg white -bg black
jvasdias 8752 2968 0 13:19 ? 00:00:00 /bin/sh -c xterm-for-top -fa 'Andale Mono' -fs 6 -fg white -bg black -T TOP@jvasdias -n TOP@jvasdias -e top </dev/null >/dev/null 2>&1
Yet they are still put into the same task manager group.
How can I get instances of /usr/bin/xterm-for-top to be put into a different task manager group?
Still, the icon groups with other xterm icons.1
Created attachment 89380 [details]
desktop file for other xterm instances
The is the desktop file used for all other xterm instances, which runs /usr/bin/xterm .
These are grouped in the same group, which is OK, but I want instances created by
clicking on top.desktop which run /usr/bin/xterm-for-top to go into a different group.
Is this possible ?
Created attachment 89403 [details]
Example of xterm '-class' workaround.
FWIW, xterm specifically has a workaround (see https://bugsfiles.kde.org/attachment.cgi?id=89403) You can set specific groupings by changing the primary WM_CLASS string. By default, xterm sets this to 'XTerm', but using the -class option, you can set that to an arbitrary string. The example I used in the attachment is to set one window (the only ungrouped one) to have the class 'yterm' instead, which makes the task manager (both in 5.1.0 and 4.11.11) recognise it as a different application, therefore not grouping. So ... there's no bug here then, in the end? :) The program grouping strategy groups windows on the WM_CLASS' general class string, i.e. two windows advertising themselves to be XTerm end up binned together. This seems expected behavior. I mean, you're saying "program grouping doesn't work because I have trouble getting it not to group two windows of the same app", which seems a bit strange to me :). |