Hi, maybe kde + fprint users already noticed that kdesu doesn't work well with 
pam_fprint enabled? Here's quickfix in attachment.
Hope it will be usefull ;)

Note: it isn't very convenient, and behaves in way kdm&kscreensaver behave:
you should press enter when it asks your pass - popup will appear - then swipe 
finger and press enter again.

Regards
Vasily
diff -Naur kdesu/kdesu/kdesu.cpp kdesu.new/kdesu/kdesu.cpp
--- kdesu/kdesu/kdesu.cpp	2006-05-22 21:13:07.000000000 +0300
+++ kdesu.new/kdesu/kdesu.cpp	2007-11-18 15:49:09.000000000 +0200
@@ -259,6 +259,7 @@
         kdWarning(1206) << "Daemon not safe (not sgid), not using it.\n";
         have_daemon = false;
     }
+    
     else if (client.ping() == -1)
     {
         if (client.startServer() == -1)
@@ -268,6 +269,7 @@
         }
         just_started = true;
     }
+    
 
     // Try to exec the command with kdesud.
     bool keep = !args->isSet("n") && have_daemon;
@@ -335,7 +337,7 @@
     // Check if we need a password
     SuProcess proc;
     proc.setUser(auth_user);
-    int needpw = proc.checkNeedPassword();
+    int needpw = 1;//proc.checkNeedPassword();
     if (needpw < 0)
     {
         QString err = i18n("Su returned with an error.\n");
diff -Naur kdesu/kdesu/sudlg.cpp kdesu.new/kdesu/sudlg.cpp
--- kdesu/kdesu/sudlg.cpp	2006-10-05 19:25:15.000000000 +0300
+++ kdesu.new/kdesu/sudlg.cpp	2007-11-18 15:43:30.000000000 +0200
@@ -57,7 +57,7 @@
 {
     SuProcess proc;
     proc.setUser(m_User);
-    int status = proc.checkInstall(password);
+    int status = 0; //proc.checkInstall(password);
     switch (status)
     {
     case -1:
_______________________________________________
fprint mailing list
[email protected]
http://lists.reactivated.net/mailman/listinfo/fprint

Reply via email to