Bug#1125682: xterm sessions do not appear in loginctl output

Vincent Lefevre <[email protected]>
Newsgroups gmane.linux.debian.devel.x
Message-ID <20260204034325.GV3036__504.73415046639$1770176733$gmane$org@qaa.vinc17.org>
On 2026-02-03 20:32:56 -0500, Thomas Dickey wrote:
> On Fri, Jan 16, 2026 at 12:19:04AM +0100, Vincent Lefevre wrote:
> > Package: xterm
> > Version: 406-1
> > Severity: normal
> 
> perhaps wishlist.

No, as since the removal of utmp, this is now a required feature, as
said by Chris Hofstaedtler.

> In a quick check, "xterm -ls" does run a "login" shell, but systemd
> doesn't know about that (something to investigate).

This should be independent from whether the shell is a login shell,
anyway ("logind" is probably misnamed as the intent is to also
handle the terminal sessions).

> strace reminds me that xterm isn't able to write to utmp since that's
> been removed.  If it hadn't been removed, (again looking at strace),
> "who" and "w" would see that information in addition to what it gets
> via systemd's intentionally undocumented sessions data.

"who" is unfortunately underspecified. "w -t" sees all the
terminal sessions (but it does not use systemd for that, and
in theory, the -t option should not be needed).
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.