get_vt (Seat *seat, DisplayServer *display_server)
{
gint vt = -1;
- const gchar *xdg_seat = seat_get_string_property (seat, "xdg-seat");
+ const gchar *xdg_seat = seat_get_name (seat);
+ if (strcmp (xdg_seat, "seat0") != 0)
+ return vt;
/* If Plymouth is running, stop it */
if (plymouth_get_is_active () && plymouth_has_active_vt ())
}
if (plymouth_get_is_active ())
plymouth_quit (FALSE);
- if (!xdg_seat)
- xdg_seat = "seat0";
- if (vt < 0 && g_strcmp0 (xdg_seat, "seat0") == 0)
+ if (vt < 0)
vt = vt_get_unused ();
return vt;