Bug 510234 - OOM notification doesn't properly parse unit name
Summary: OOM notification doesn't properly parse unit name
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Out of memory notification (other bugs)
Version First Reported In: 6.4.5
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-04 16:04 UTC by Nicolas Fella
Modified: 2025-10-07 18:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot (284.69 KB, image/png)
2025-10-04 16:05 UTC, Nicolas Fella
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Fella 2025-10-04 16:04:47 UTC
STEPS TO REPRODUCE
1. Start Yakuake 
2. Have the OOM killer kill it
3. Look at notification

OBSERVED RESULT
Der Hintergrunddienst dbus-:1.2-org.kde.yakuake@0.service wurde vom Linux-Kernel beendet, weil dem System der Arbeitsspeicher auszugehen drohte. Es sollten ungenutzte Anwendungen und Unterfenster der Webbrowser geschlossen werden. 

EXPECTED RESULT
It shows "Yakuake" instead of dbus-:1.2-org.kde.yakuake@0.service

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

ADDITIONAL INFORMATION
Comment 1 Nicolas Fella 2025-10-04 16:05:03 UTC
Created attachment 185509 [details]
Screenshot
Comment 2 Harald Sitter 2025-10-06 07:02:21 UTC
Apps must start with app- to be detected as app.

https://systemd.io/DESKTOP_ENVIRONMENTS/

outside this well defined naming scheme it's the wild west AFAIK
Comment 3 Nate Graham 2025-10-07 18:59:32 UTC
Looks like decodeUnitName() needs a bit more logic.