Summary: | Flatpak applications are doubled in the System Monitor | ||
---|---|---|---|
Product: | [Applications] plasma-systemmonitor | Reporter: | Artem <kde_bts> |
Component: | general | Assignee: | KSysGuard Developers <ksysguard-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ahiemstra, kde, nate, plasma-bugs |
Priority: | NOR | Keywords: | qt6 |
Version: | 6.1.4 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/libksysguard/-/commit/96cd4ed58e984fc1f2125c63b0e93dea8c427c48 | Version Fixed In: | 6.3.0 |
Sentry Crash Report: | |||
Attachments: |
Applications list in the System Monitor
Output of systemd-cgls.log |
Description
Artem
2024-02-19 16:53:10 UTC
Created attachment 165940 [details]
Applications list in the System Monitor
The problem is still being observed. But I realized that this has nothing to do with autostart - all flatpak applications running at any moment are duplicated. Operating System: Fedora Linux 40 KDE Plasma Version: 6.1.4 KDE Frameworks Version: 6.5.0 Qt Version: 6.7.2 Kernel Version: 6.10.4-200.fc40.x86_64 (64-bit) Graphics Platform: Wayland I can reproduce that too. Yeah I'm seeing this too. The problem however is that Flatpak seems to create two cgroups for one application, which breaks our original assumption that one cgroup is one application. I don't know exactly why this happens, I seem to recall looking into this and ending up at some Electron thing. But maybe you can share the output of `systemd-cgls` when this happens to confirm it's the same thing? Created attachment 172817 [details]
Output of systemd-cgls.log
Attached. I actually have *three* instances of Discord showing up in my Applications page right now.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/libksysguard/-/merge_requests/373 Git commit 96cd4ed58e984fc1f2125c63b0e93dea8c427c48 by Arjen Hiemstra. Committed on 24/10/2024 at 10:02. Pushed by ahiemstra into branch 'master'. processcore: Make ApplicationDataModel aggregate similar CGroups into one entry This changes ApplicationDataModel to aggregate similar CGroups into one application entry. The primary motivation for this is that a single Flatpak application instance may spawn several separate CGroups that we would list as separate applications before this change, but which logically belong to the same application. Upstream has indicated this behaviour is intentional and seems to have no inclination on adding anything to allow us to identify these cases, so we are left with just merging everything. This is also slightly more aggressive in filtering out some things that are currently listed but aren't really applications, most notably some D-Bus autostarted applications. M +99 -5 processcore/application_data_model.cpp M +23 -0 processcore/application_data_model.h https://invent.kde.org/plasma/libksysguard/-/commit/96cd4ed58e984fc1f2125c63b0e93dea8c427c48 |