summaryrefslogtreecommitdiff
path: root/libgdm
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2021-02-25 12:41:36 -0500
committerRay Strode <rstrode@redhat.com>2021-02-25 14:35:46 -0500
commitde7df6f24aee51fe89bab096f784e22578a83cbb (patch)
tree02485c8ea05addd9b2380138461e62e9e5db94e8 /libgdm
parent40a0aa7b4a8aac75ad4b12ff3637d43105505472 (diff)
downloadgdm-de7df6f24aee51fe89bab096f784e22578a83cbb.tar.gz
daemon,common,libgdm: Drop use of sd_seat_can_multi_session
It's deprecated now, and always returns TRUE.
Diffstat (limited to 'libgdm')
-rw-r--r--libgdm/gdm-user-switching.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/libgdm/gdm-user-switching.c b/libgdm/gdm-user-switching.c
index 20235fd8..b39d21db 100644
--- a/libgdm/gdm-user-switching.c
+++ b/libgdm/gdm-user-switching.c
@@ -218,24 +218,6 @@ goto_login_session (GDBusConnection *connection,
return FALSE;
}
- res = sd_seat_can_multi_session (seat_id);
- if (res < 0) {
- free (seat_id);
-
- g_debug ("failed to determine whether seat can do multi session: %s", strerror (-res));
- g_set_error (error, GDM_CLIENT_ERROR, 0, _("The system is unable to determine whether to switch to an existing login screen or start up a new login screen."));
-
- return FALSE;
- }
-
- if (res == 0) {
- free (seat_id);
-
- g_set_error (error, GDM_CLIENT_ERROR, 0, _("The system is unable to start up a new login screen."));
-
- return FALSE;
- }
-
res = get_login_window_session_id (seat_id, &session_id);
if (res && session_id != NULL) {
res = activate_session_id (connection, cancellable, seat_id, session_id, error);