From: Michael Terry Date: Wed, 4 Dec 2013 20:29:57 +0000 (+0000) Subject: In the unity seat, if we don't have proper VT support, fake VT 0 instead of a real... X-Git-Url: http://rtime.felk.cvut.cz/gitweb/sojka/lightdm.git/commitdiff_plain/a3aa84705c762748ca645324b38964b9e0169f70?hp=51952a143c3fb41e2e501df6c08342f0f5bc4fc5 In the unity seat, if we don't have proper VT support, fake VT 0 instead of a real VT number. This matches what logind expects. Approved by Robert Ancell, PS Jenkins bot. --- diff --git a/src/seat-unity.c b/src/seat-unity.c index e9a89e02..4c224b2b 100644 --- a/src/seat-unity.c +++ b/src/seat-unity.c @@ -314,7 +314,7 @@ seat_unity_start (Seat *seat) if (plymouth_get_is_active ()) plymouth_quit (FALSE); if (SEAT_UNITY (seat)->priv->vt < 0) - SEAT_UNITY (seat)->priv->vt = vt_get_unused (); + SEAT_UNITY (seat)->priv->vt = vt_can_multi_seat () ? vt_get_unused () : 0; if (SEAT_UNITY (seat)->priv->vt < 0) { l_debug (seat, "Failed to get a VT to run on");