summaryrefslogtreecommitdiffstats
path: root/opensuse/tdelibs/kdesu-settings.diff
diff options
context:
space:
mode:
authorRobert Xu <robxu9@gmail.com>2011-08-13 12:58:51 -0400
committerRobert Xu <robxu9@gmail.com>2011-08-13 12:58:51 -0400
commit46130378aea5fff80803409c2573e2ea31472cb9 (patch)
treecb5da908105e6577da7676f84ba9c7fbaba4fb52 /opensuse/tdelibs/kdesu-settings.diff
parent53f2819f9af035a38ca08df1ede9e6cd24aa79ef (diff)
downloadtde-packaging-46130378aea5fff80803409c2573e2ea31472cb9.tar.gz
tde-packaging-46130378aea5fff80803409c2573e2ea31472cb9.zip
add dbus-1-tqt and libdbus-1-tqt-0; add unmodified tdelibs from kdelibs3
Diffstat (limited to 'opensuse/tdelibs/kdesu-settings.diff')
-rw-r--r--opensuse/tdelibs/kdesu-settings.diff50
1 files changed, 50 insertions, 0 deletions
diff --git a/opensuse/tdelibs/kdesu-settings.diff b/opensuse/tdelibs/kdesu-settings.diff
new file mode 100644
index 000000000..fc24c09b6
--- /dev/null
+++ b/opensuse/tdelibs/kdesu-settings.diff
@@ -0,0 +1,50 @@
+Subject: Change kdesu settings
+From: Lubos Lunak
+Bug: 216796
+Relates: kdelibs4/kdesu-settings.diff
+Patch-upstream: never
+
+Change kdesu(d) password keeping timeout only to 5 minutes and enable
+it by default (to match kdesu using sudo in 10.3 behaviour).
+KDE3 needs a hack in KPasswordDialog for enabling it by default.
+
+Update: Change the timeout back to 2 hours (bnc#404521).
+
+Index: kdesu/defaults.h
+===================================================================
+--- kdesu/defaults.h.orig
++++ kdesu/defaults.h
+@@ -13,8 +13,9 @@
+ #ifndef __Defaults_h_included__
+ #define __Defaults_h_included__
+
++/*const int defTimeout = 120*60;*/
+ const int defTimeout = 120*60;
+ const int defEchoMode = 0;
+-const int defKeep = false;
++const int defKeep = true;
+
+ #endif
+Index: kdeui/kpassdlg.cpp
+===================================================================
+--- kdeui/kpassdlg.cpp.orig
++++ kdeui/kpassdlg.cpp
+@@ -49,6 +49,8 @@
+
+ #include "kpassdlg.h"
+
++#include "../kdesu/defaults.h"
++
+ /*
+ * Password line editor.
+ */
+@@ -337,7 +339,8 @@ void KPasswordDialog::init()
+
+ KConfig* const cfg = KGlobal::config();
+ const KConfigGroupSaver saver(cfg, "Passwords");
+- if (m_Keep && cfg->readBoolEntry("Keep", false))
++ bool def = ( qstrcmp( qAppName(), "kdesu" ) == 0 ? defKeep : false );
++ if (m_Keep && cfg->readBoolEntry("Keep", def))
+ ++m_Keep;
+
+ m_pMain = new QWidget(this);