[Bug 1089791] New: Display number not captured properly in last command for GDM logins
http://bugzilla.suse.com/show_bug.cgi?id=1089791 Bug ID: 1089791 Summary: Display number not captured properly in last command for GDM logins Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: Other OS: Other Status: NEW Severity: Major Priority: P5 - None Component: GNOME Assignee: bnc-team-gnome@forge.provo.novell.com Reporter: rashmiranjan.mohanty@microfocus.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Environment : Opensuse Leap 15.0 beta with GNOME desktop Login to desktop as any user. Then check the output of "last" command Observation : last command output does not list the display number of the desktop user. It just displays ":" Here is a sample output..... rrm-leap15g:~ # last root pts/0 164.99.138.194 Tue Apr 17 11:56 still logged in rashmi tty2 tty2 Tue Apr 17 11:56 still logged in rashmi : : Tue Apr 17 11:56 still logged in reboot system boot 4.12.14-lp150.8- Tue Apr 17 09:20 still running Leap 15.0 with KDE desktop shows the display number properly as ":0" . Here is the sample output of last command after KDE desktop login.. rrm-leap15k:~ # last root pts/0 164.99.138.194 Tue Apr 17 11:55 still logged in rashmi tty7 :0 Tue Apr 17 11:54 still logged in reboot system boot 4.12.14-lp150.8- Tue Apr 17 09:20 still running -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1089791
http://bugzilla.suse.com/show_bug.cgi?id=1089791#c1
--- Comment #1 from Rashmi Ranjan Mohanty
http://bugzilla.suse.com/show_bug.cgi?id=1089791
http://bugzilla.suse.com/show_bug.cgi?id=1089791#c2
Richard Brown
http://bugzilla.suse.com/show_bug.cgi?id=1089791
http://bugzilla.suse.com/show_bug.cgi?id=1089791#c3
--- Comment #3 from Rashmi Ranjan Mohanty
Why should there be an X display number when gdm doesn't use X?
I dont know if those display numbers :0 , :1 are specifically associated with X or not. But even without using X, when I run "echo $DISPLAY" from a terminal within desktop it does print ":0" . Even exporting a display to :0 works as it was working before. So it seems even XWayland follows those display number conventions. Then why not log it ? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1089791
http://bugzilla.suse.com/show_bug.cgi?id=1089791#c4
--- Comment #4 from Richard Brown
(In reply to Richard Brown from comment #2)
Why should there be an X display number when gdm doesn't use X?
I dont know if those display numbers :0 , :1 are specifically associated with X or not. But even without using X, when I run "echo $DISPLAY" from a terminal within desktop it does print ":0" . Even exporting a display to :0 works as it was working before. So it seems even XWayland follows those display number conventions. Then why not log it ?
Xwayland is a backwards compatibilty layer for Wayland I'd expect $DISPLAY to be exported when it's running But I wouldn't expect it to show in last. /var/log/wtmp is not showing which $DISPLAY was available after login, it is recording the console that was used for login. It would be correct to not log an X display if the user didn't login using an X display. I think : would be a correct designation for a wayland session within last -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1089791
http://bugzilla.suse.com/show_bug.cgi?id=1089791#c5
--- Comment #5 from Rashmi Ranjan Mohanty
I think : would be a correct designation for a wayland session within last
I can understand probably thats the right thing to do because of the way wayland works. You may close the bug as invalid. I want to know couple of things and I am sorry to use the bug to find the information. I did lot of googling and digging, but could not find proper answers. 1. How do I programmatically find the display number on which a desktop user is logged in so that can export the display of a graphical application to the desktop ? None of the commands like last, who, loginctl seems to help. 2. Whether "export DISPLAY=..." is the right way with wayland or there is any better and recommended way to export display ? -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com