Commit 47c73024 authored by Ray Strode's avatar Ray Strode
Browse files

slave: only set up autologin conversations

Right now any time any session conversation is started,
we run its setup call if autologin is enabled. We should only do this
for autologin sessions, otherwise, we may repeat work done by
the greeter.
parent 081fc256
......@@ -485,8 +485,12 @@ on_session_conversation_started (GdmSession *session,
char *username;
int delay;
g_debug ("GdmSimpleSlave: session conversation started for service %s", service_name);
if (g_strcmp0 (service_name, "gdm-autologin") != 0) {
g_debug ("GdmSimpleSlave: session conversation started");
enabled = FALSE;
gdm_slave_get_timed_login_details (GDM_SLAVE (slave), &enabled, &username, &delay);
if (! enabled) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment