Commit 1edb0e4a authored by Ray Strode's avatar Ray Strode

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
parent 6902187c
......@@ -1085,7 +1085,7 @@ add_session_record (GdmManager *manager,
"display-device", &display_device,
NULL);
if (display_name == NULL) {
if (display_name == NULL && display_device == NULL) {
goto out;
}
......
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment