On Fri, 2017-08-04 at 16:39 +0800, Ed Greshko wrote:
>
> I will note that I have 2 test VM's installed. One pure KDE. One
> pure LXQt. Both
> are using and have the same version of sddm installed. Which is
> sddm-0.14.0-10.fc26.
>
> On the KDE system when logged in the who command will show.
>
> [egreshko@acer lib]$ who
> egreshko pts/0 2017-07-27 19:42 (:0)
>
> While nothing will be returned on the LXQt system.
>
> So, I then installed KDE Plasma Workspaces on the formerly pure LXQT
> system.
>
> Now when I login to an LXQt session "who" does show the graphical
> session....
>
> [egreshko@meimei testing]$ cat who.lxqt
> egreshko pts/0 2017-08-04 16:03 (:0)
>
> And the environment shows...
>
> XDG_MENU_PREFIX=lxqt-
> LXQT_SESSION_CONFIG=session
>
HOSTNAME=f26-lxqt.greshko.com
> DESKTOP_SESSION=/usr/share/xsessions/lxqt
> QT_QPA_PLATFORMTHEME=lxqt
> SSH_ASKPASS=/usr/libexec/openssh/lxqt-openssh-askpass
> QT_PLATFORM_PLUGIN=lxqt
> XDG_CURRENT_DESKTOP=X-LXQt
>
> Now, adding KDE resulted in 354 additional packages being installed.
>
> One of them did the trick. I suppose I could try and track down the
> magic package....
I have been doing some searching on the web and found (among others
in other languages):
1) Apparently the communication SDDM with /var/run/utmp was problematic
in the beginning. 'utmp' is listed as something to take up in this
TODO list of 'unfinished' business in SDDM (2014):
https://github.com/sddm/sddm/wiki/TODO
2) The problems with 'who', 'w', 'users', 'last' are
discussed
extensively in a Mageia bugzilla from 2016/2017:
https://bugs.mageia.org/show_bug.cgi?id=18032
The 'blame' is laid on SDDM (which "can't run a script as
root"?
to correct the problem).
But something seems to have been "solved" in KDE/Plasma but not in
LXQT (Ed Greshko and web reports)
3) The combination SDDM, LXQT, Systemd is (or can be) flaky sometimes.
https://bbs.archlinux.org/viewtopic.php?id=227292
I too have experienced problems like this.
4) That this is a problem with SDDM-utmp (or whatever) is clear
from the following;
Login from the SDDM screen in LXQT and 'who', w', 'users',
'last'
do NOT show the users, but switch to a console (CTL-ALT-F3) (or
login to level 3 directly) and everything works as expected.
And, FWIW, you can simply do "dnf install sddm-breeze sddm-kcm" which will add
80
packages to your system and get "who" and "users" and "last"
to react as you desire.
Frankly, that isn't a major problem not to record graphic logins. But if you need
it, that will get you there with the least number of added packages AFAIK. I could
narrow it down. But it seems like an unnecessary exercise.
If want, you could write a Bugzilla against LXQt and not recording logins in wtmp.
All of this seems a minor nit to me.
--
Fedora Users List - The place to go to speculate endlessly