diff options
author | Robert Nagy <robert@openbsd.org> | 2021-07-04 09:37:10 +0200 |
---|---|---|
committer | Robert Nagy <robert@openbsd.org> | 2021-07-04 09:37:10 +0200 |
commit | 2618521ef21071643283a2e28f7e8510f12fe9e9 (patch) | |
tree | 2ff40c86c5a2368d5f9b4615095ad5ea17f17c6c | |
parent | fb65a5eba0b857a9dd1a8f7a74e431849173e442 (diff) | |
download | ConsoleKit2-2618521ef21071643283a2e28f7e8510f12fe9e9.tar.gz |
do not hardcode seat0 for Seat1 in ListSessions because CK is not linux only
-rw-r--r-- | src/ck-seat.c | 8 |
1 files changed, 1 insertions, 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 |