Commit bfdb201b authored by Lubomir Rintel's avatar Lubomir Rintel Committed by Ray Strode

manager: gracefully handle the case of no session for login window

get_login_window_session_id() will return TRUE with session_id=NULL when
there's no session. This restults in an assertion failure on
constructing the o.fd.login1.Manager.ActivateSessionOnSeat() arguments:

  GLib: g_variant_new_string: assertion 'string != NULL' failed
parent a7f210d8
......@@ -1413,8 +1413,10 @@ activate_login_window_session_on_seat (GdmManager *self,
return;
}
activate_session_id (self, seat_id, session_id);
g_free (session_id);
if (session_id) {
activate_session_id (self, seat_id, session_id);
g_free (session_id);
}
}
static void
......
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