From 2618521ef21071643283a2e28f7e8510f12fe9e9 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Sun, 4 Jul 2021 09:37:10 +0200 Subject: do not hardcode seat0 for Seat1 in ListSessions because CK is not linux only --- src/ck-seat.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/ck-seat.c b/src/ck-seat.c index 1028d60..df8e864 100644 --- a/src/ck-seat.c +++ b/src/ck-seat.c @@ -1121,13 +1121,7 @@ _ck_seat_set_kind (CkSeat *seat, CkSeatKind kind) { seat->priv->kind = kind; - if (kind == CK_SEAT_KIND_STATIC) { - console_kit_seat_set_name (CONSOLE_KIT_SEAT (seat), "seat0"); - } else { - /* FIXME: At some point we should properly map this to the - * udev/devattr seat name when we do multi-seat */ - console_kit_seat_set_name (CONSOLE_KIT_SEAT (seat), g_strrstr(seat->priv->id, "/")); - } + console_kit_seat_set_name (CONSOLE_KIT_SEAT (seat), seat->priv->id); } static void -- cgit v1.2.3