Summary: | Write Daemon/Local System Message Service does not show notifications sent using wall(1) or write(1) | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kwrited | Reporter: | Colin S <bugs.kde.org> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | kde, kde, kde, nate, nicolas.fella, s.wezel |
Priority: | NOR | ||
Version First Reported In: | 5.27.11 | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Colin S
2024-08-04 18:29:35 UTC
Can reproduce with current git master. I have a vague, indistinct memory that this was removed in the recent past during a cleanup on the assumption that it was a niche feature nobody would miss. I can't find the commit that did it, though. CCing some people who might have better memory than me. Or maybe I'm wrong and it just broke! No this was certainly brainstormed but it's still there and released with plasma 6 https://invent.kde.org/plasma/kwrited It also still works for me on plasma 6 huh, it's broken for me. How to debug this? kwrited is listed as a loaded kded module I have no clue, I just wrote "wall hello" in konsole and got the notification. I would start by adding qdebugs? Worth a shot, try removing "X-KDE-Kded-load-on-demand": true from the json metadata. Well that did something. Now `echo 'Hello' |wall` produces a horrible beeping sound, whereas previously it did nothing. @Nate Graham: What is the output of the who command? kwrited does an separate login using KPtyDevice which does it via utempter/utmp. Which causes an login entry be generated with "pts/<number>" as "device" Depending if util-linux (which provides wall) was compiled with systemd support or not, wall uses different methods to get the list of logged in users. Since at least version 2.40.2 of util-linux uses loginctl when systemd support is active otherwise utmp/wtmp. when util-linux is compiled without systemd support the output of the who command looks as follows <username> tty2 2025-02-01 18:59 <username> pts/0 2025-02-01 19:58 (:0) The first entry is the login via e.g. sddm. The second entry is the login done by kwrited. wall will then write the message to the tty2 and pts/0 devices. The write to pts/0 is then read by kwrited and send to the notification system. When util-linux >= 2.40.2 is compiled with systemd support the second entry is omitted in the output of the who command. And thus wall tries only to write the message to the tty2 device |