Bug 417828 - Spawned Child processes get grouped with parent
Summary: Spawned Child processes get grouped with parent
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: 5.18.4
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-18 13:33 UTC by Till Seifert
Modified: 2022-11-18 17:03 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Task manager with java as subprocess of intellij (22.00 KB, image/png)
2020-02-18 13:33 UTC, Till Seifert
Details
The Task manager if app is laucnched the same way on Palasma 5.17 (11.32 KB, image/png)
2020-02-18 13:35 UTC, Till Seifert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Till Seifert 2020-02-18 13:33:59 UTC
Created attachment 126128 [details]
Task manager with java as subprocess of intellij

This happens to me when i launch a Java app i am developing with IntellJ IDEA (second line is IntelliJ, third line is the launched custom app):
The process tree looks like this:

 └─ /bin/sh /snap/intellij-idea-ultimate/204/bin/idea.sh

    └─ /snap/intellij-idea-ultimate/204/jbr/bin/java -classpath /snap/intellij-idea-ultimate………
       │
       ├─ /home/till/jdk1.8.0_191/bin/java 


The task manager (normal and icon-only) display the IntelliJ icon for for the launched java-app, and group it with IntelliJ.
This happens only since Plasma 5.18.




STEPS TO REPRODUCE
1. Launch IntelliJ
2. Launch a Java app that creates a window from intelliJ
3. Observe Task Manager

OBSERVED RESULT

The Task Manager groups the launched app with IntelliJ and assigns the same icon


EXPECTED RESULT

The launched app is displayed as an independend entry in the Task Manager and has it's icon


SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.18
KDE Plasma Version: 5.18.0
KDE Frameworks Version: 5.67.0
Qt Version: 5.13.2
Kernel Version: 4.18.17-041817-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz
Memory: 23,4 GiB


ADDITIONAL INFORMATION

before 5.18. this worked as expected. see two attached screenshots, icon1.png is Plasma 5.18, and icon2.png is Plasma 5.17.
Comment 1 Till Seifert 2020-02-18 13:35:15 UTC
Created attachment 126129 [details]
The Task manager if app is laucnched the same way on Palasma 5.17
Comment 2 Till Seifert 2020-02-18 13:37:25 UTC
I forgot to mention: If i launch the same command line (java -jar[…]) from Konsole  while IntellJ is running, it gets its own Task Manager entry exactly like in Plasma 5.17.

So it only seems to happen if the java app is a *subprocess* of IntelliJ
Comment 3 Nate Graham 2020-02-18 22:49:30 UTC
Similar issue to Bug 417457. Maybe the same root cause.
Comment 4 Till Seifert 2020-02-22 16:30:42 UTC
Additional info:

this also happens with *non-java" apps that I launch from Intellij, (such as gitk).

They even keep the IntelliJ-icon in the Task bar after i close Intellij completely!

The Alt-Tab switcher is not affected.
Comment 5 Till Seifert 2022-11-18 17:03:59 UTC
I now switched from the Snap-version of IDEA to one installed in /opt. The does *not* appear now.