Bug 510235

Summary: DBus-activated apps are not shown in Applications list
Product: [Applications] plasma-systemmonitor Reporter: Nicolas Fella <nicolas.fella>
Component: generalAssignee: KSysGuard Developers <ksysguard-bugs>
Status: REPORTED ---    
Severity: normal CC: ahiemstra, kde, plasma-bugs-null
Priority: NOR    
Version First Reported In: 6.4.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=513025
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nicolas Fella 2025-10-04 16:20:20 UTC
STEPS TO REPRODUCE
1. Run Yakuake from Kickoff 
2. Open systemmonitor
3. Go to Applications

OBSERVED RESULT
Yakuake is not in the list

EXPECTED RESULT
Yakuake is in the list

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18
Qt Version: 6.9.2

ADDITIONAL INFORMATION
This is presumably because Yakuake is DBus-activatable, which affects the naming pattern of the cgroup
Comment 1 David Redondo 2025-10-06 13:16:11 UTC
Is this dbus-daemon or dbus-broker? What is the resulting cgroup name?
Comment 2 Bug Janitor Service 2025-10-21 03:47:24 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2025-11-05 03:48:00 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.
Comment 4 Nicolas Fella 2025-11-05 17:15:11 UTC
(In reply to David Redondo from comment #1)
> Is this dbus-daemon or dbus-broker?

dbus-broker

> What is the resulting cgroup name?

dbus-:1.2-org.kde.yakuake@0.service
Comment 5 David Redondo 2025-11-06 13:59:09 UTC
Ok so when launching a process we normally make sure that apps end up in the correct cgroup. 
When launching a DBusActivatable=true app we just make the bus call and do nothing.

So far what we did was that we added a systemd file for our apps that are dbusactivatable so systemd moves it to a "correct" service name.
I looked at gnome-shell and it appears to me that they are not shipping systemd service files for their apps but instead fix up the service afterwards it is launched via dbus.
Comment 6 David Redondo 2025-11-06 14:11:24 UTC
Long term that's something we could do as well.
Comment 7 David Redondo 2025-11-06 14:57:22 UTC
I am wrong, the function I was guessing to do this actually noops in the dbus case.
usage apps still shows it though, but they have no special case for dbus, I guess the code they do to fetch cgroup works by coincidence
https://gitlab.gnome.org/GNOME/gnome-usage/-/blob/main/src/app-item.vala#L113
instead of the mad regex we have that really tries to verify the spec

Still I think we should aim to follow spec but we could maybe relax our unit parsing.