File gdm-passwordless.patch of Package gdm.openSUSE_12.1_Update

diff -Npur gdm-old/daemon/gdm-greeter-server.c gdm-new/daemon/gdm-greeter-server.c
--- gdm-old/daemon/gdm-greeter-server.c	2012-09-13 18:31:29.956436512 +0800
+++ gdm-new/daemon/gdm-greeter-server.c	2012-09-13 18:33:23.742236621 +0800
@@ -439,6 +439,7 @@ handle_start_conversation (GdmGreeterSer
         DBusError    error;
         const char  *service_name;
         const char  *translated_service_name;
+        gboolean     passwordless;
 
         dbus_error_init (&error);
         if (! dbus_message_get_args (message, &error,
@@ -448,6 +449,15 @@ handle_start_conversation (GdmGreeterSer
         }
         dbus_error_free (&error);
 
+        if (!gdm_settings_client_get_boolean (GDM_KEY_SUSE_PASSWORDLESS_LOGIN_ENABLE,
+                                              &passwordless)) {
+                passwordless = FALSE;
+        }
+
+        if (passwordless)
+                service_name = "gdm-autologin";
+
+
         g_debug ("GreeterServer: StartConversation");
 
         reply = dbus_message_new_method_return (message);
openSUSE Build Service is sponsored by