diff options
author | Ray Strode <rstrode@redhat.com> | 2013-09-18 15:04:17 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2013-09-18 21:33:31 -0400 |
commit | 55dac29022488a8893875e39b2cfe7b50621ecae (patch) | |
tree | 48285106bdc985261b281d70267d5b14ace53605 | |
parent | 776a088f152efc1498380132e5776ef6ee3ead40 (diff) | |
download | gdm-55dac29022488a8893875e39b2cfe7b50621ecae.tar.gz |
flexiserver: don't look at pam service name to find login screen
It changed a long time ago and we neglected to update it here, and
checking the class is good enough anyway.
-rw-r--r-- | utils/gdmflexiserver.c | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/utils/gdmflexiserver.c b/utils/gdmflexiserver.c index cfeb1757..5a4d1ead 100644 --- a/utils/gdmflexiserver.c +++ b/utils/gdmflexiserver.c @@ -511,7 +511,6 @@ get_login_window_session_id_for_systemd (const char *seat_id, gboolean ret; int res, i; char **sessions; - char *service_id; char *service_class; char *state; @@ -528,7 +527,6 @@ get_login_window_session_id_for_systemd (const char *seat_id, } for (i = 0; sessions[i]; i ++) { - res = sd_session_get_class (sessions[i], &service_class); if (res < 0) { g_debug ("failed to determine class of session %s: %s", sessions[i], strerror (-res)); @@ -556,22 +554,10 @@ get_login_window_session_id_for_systemd (const char *seat_id, } free (state); - res = sd_session_get_service (sessions[i], &service_id); - if (res < 0) { - g_debug ("failed to determine service of session %s: %s", sessions[i], strerror (-res)); - ret = FALSE; - goto out; - } - - if (strcmp (service_id, "gdm-welcome") == 0) { - *session_id = g_strdup (sessions[i]); - ret = TRUE; - - free (service_id); - goto out; - } + *session_id = g_strdup (sessions[i]); + ret = TRUE; + break; - free (service_id); } *session_id = NULL; |