https://bugs.kde.org/show_bug.cgi?id=491272

Stephan Wezel <s.we...@web.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |s.we...@web.de

--- Comment #8 from Stephan Wezel <s.we...@web.de> ---
@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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to