nokyan / resources

Keep an eye on system resources
GNU General Public License v3.0
783 stars 58 forks source link

AppImage application are shown in the wrong control group #362

Open citorva opened 2 months ago

citorva commented 2 months ago

Is there an existing issue for this?

Current Behavior

Application launched from its AppImage files are shown in the control group of the application who launches the last one.

Example with the FreeCad 1.0rc1 launched from nautilus on gnome: screenshot

Expected Behavior

An application launched from AppImage and its children must be in a new control group based on the application ID packaged in the AppImage. In the previous example, the control group would be org.freecad.Freecad

Steps To Reproduce

  1. Launching an application from it AppImage file
  2. The resulting control group would be the control group of the application which launches the AppImage.

Environment

Resouces Version 1.6.0
Package type: Flatpak
System: Arch Linux
Desktop Environment: GNOME Shell 46.4 running Wayland

Anything else?

No response

nokyan commented 2 months ago

Hi, thanks for the issue. Resources doesn't set control groups, it only reads them and uses them to associate a process with an app. Resources does not have a way to detect AppImages as apps if there's not a desktop file for them. If you open an AppImage from GNOME Files, its cgroup will be the one of GNOME Files. Nothing I can do about that.

citorva commented 2 months ago

Hello, thanks for the answer

I have also found that AppImage does not provide tools providing information about running AppImages processes. However, after reading the specification, I think that it is possible to get information about the running AppImage.

I can make tests in a distinct crate and integrate it in the application if this approach is handy.