summaryrefslogtreecommitdiff
path: root/daemon/gdm-session-record.c
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2015-04-02 11:33:20 -0400
committerRay Strode <rstrode@redhat.com>2015-04-02 15:21:22 -0400
commit1edb0e4ae897cb1c53af3f3b2b913d5baf731580 (patch)
treebf75fa73451bf08c0e32d21dcb411c1a0deed0f9 /daemon/gdm-session-record.c
parent6902187cfbe81d549a374083501a54bd66df41c9 (diff)
downloadgdm-1edb0e4ae897cb1c53af3f3b2b913d5baf731580.tar.gz
session-record: support NULL display name if tty available
wayland sessions don't necessarily have a display name, so this commit just uses the display device instead. https://bugzilla.gnome.org/show_bug.cgi?id=747169
Diffstat (limited to 'daemon/gdm-session-record.c')
-rw-r--r--daemon/gdm-session-record.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/gdm-session-record.c b/daemon/gdm-session-record.c
index 1585ef59..da824aaf 100644
--- a/daemon/gdm-session-record.c
+++ b/daemon/gdm-session-record.c
@@ -205,6 +205,9 @@ gdm_session_record_login (GPid session_pid,
UTMP session_record = { 0 };
UTMP *u;
+ if (x11_display_name == NULL)
+ x11_display_name = display_device;
+
record_set_username (&session_record, user_name);
g_debug ("Writing login record");