linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.55k stars 741 forks source link

Launched apps are not in their own cgroup #12015

Open qwertychouskie opened 10 months ago

qwertychouskie commented 10 months ago

Distribution

21.3

Package version

6.0.4

Graphics hardware in use

N/A

Frequency

Always

Bug description

When launching an application (e.g. a shortcut pinned to the panel), the launched application is a part of the same cgroup as the DE itself, rather than in its own cgroup. This means that various system monitor apps (e.g. Mission Center) show launched applications as a subprocess of cinnamon, rather than actually an application.

Steps to reproduce

Launch an application (e.g. Firefox), then look for it in the Applications section of a task manager/system monitor utility (e.g. Mission Center).

Expected behavior

When applications are launched, they should be given their own cgroup, rather than using the DE's cgroup.

Additional information

From https://gitlab.com/mission-center-devs/mission-center/-/issues/102#note_1669993731:

I've set up a VM with the latest version of Linux Mint and looked into this bug.

Currently Mission Center does some very simple heuristics to try to determine running apps, but the bulk of the logic relies on the DE registering a cgroup for each app a user launches. Linux Mint's Cinnamon does not do that, and thus a lot of running apps do not show up in the app list.

While some logic could be added to the app to be able detect running apps without the help from the DE this creates a large maintenance burden and yields a very brittle and unreliable result.

Fixing this issue upstream should result in Mission Center and similar applications working as expected.

qwertychouskie commented 9 months ago

FWIW, I tried the experimental Wayland session as well, and the issue was still present.

Tedpac commented 4 months ago

This should get attention soon, please. This makes it difficult to use applications to monitor application resource usage. For example, the monitoring applications do not recognize Firefox or Google Chrome as applications, but as traditional system processes...

imagen

EverydayLolicon commented 1 month ago

I'd like to see this fixed too