[gdm] Add allowed-failures key to login screen settings



commit 8467ae1cb5dbb92e101a35033579f295a9fc2a86
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Mon Sep 3 19:06:11 2012 +0200

    Add allowed-failures key to login screen settings
    
    Add a new key to configure the number of failed login attempts before
    showing the user list again. Defaults to 3.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=683285

 data/gdm-shell.session                     |    2 +-
 data/org.gnome.login-screen.gschema.xml.in |   10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/data/gdm-shell.session b/data/gdm-shell.session
index 372eca9..9f4efae 100644
--- a/data/gdm-shell.session
+++ b/data/gdm-shell.session
@@ -1,5 +1,5 @@
 [GNOME Session]
 Name=Display Manager
 RequiredComponents=gnome-shell;gnome-settings-daemon;
-IsRunnableHelper=bash -c 'gnome-shell --help | grep -q gdm && /usr/libexec/gnome-session-check-accelerated'
+IsRunnableHelper=/usr/libexec/gnome-session-check-accelerated
 FallbackSession=gdm-fallback
diff --git a/data/org.gnome.login-screen.gschema.xml.in b/data/org.gnome.login-screen.gschema.xml.in
index 657d0b0..e837291 100644
--- a/data/org.gnome.login-screen.gschema.xml.in
+++ b/data/org.gnome.login-screen.gschema.xml.in
@@ -79,5 +79,15 @@
         Set to true to disable showing the restart buttons in the login window.
       </_description>
     </key>
+    <key name="allowed-failures" type="i">
+      <default>3</default>
+      <_summary>
+        Number of allowed authentication failures
+      </_summary>
+      <_description>
+        The number of times a user is allowed to attempt authentication, before
+        giving up and going back to user selection.
+      </_description>
+    </key>
   </schema>
 </schemalist>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]