Bruno Haible via Gnulib discussion list <[email protected]> writes: > [Changing the subject, as this is no longer related to getlogin().] > > Paul Eggert wrote: >> $ src/who-enable-systemd >> eggert pts/0 2026-04-18 08:41 (47.154.25.11) >> gdm-greeter seat0 2026-04-17 17:26 >> gdm-greeter tty1 2026-04-17 17:26 >> $ src/who-disable-systemd >> eggert pts/0 2026-04-18 08:41 (47.154.25.11) >> >> The gdm-greeter lines are nonsense and should not be displayed, as >> nobody is logged in there. > > Yes, this was already mentioned a while ago, and AFAIR the > recommendation was that the 'who' program should filter out > names like 'gdm-greeter' that don't designate an actual user.
The issue I have with this solution is that it requires the 'who' program to maintain an ever expanding list of user names used by desktop managers. Also, I guess this is mostly theoretical, but you would want to show 'gdm-greeter' if a user actually named themselves that. Collin
