diff options
author | Robert Xu <robxu9@gmail.com> | 2012-03-31 14:28:06 -0400 |
---|---|---|
committer | Robert Xu <robxu9@gmail.com> | 2012-03-31 14:28:06 -0400 |
commit | 59dd46ef985a719579132efa6a9aa49bfeeae112 (patch) | |
tree | 93d8c721ff263e67aaf59e364496862872ded8fb /opensuse/core/tdelibs.old/kdesu-settings.diff | |
parent | c141f0bc29b6e2eeda5ca08a043d26546a1427f9 (diff) | |
download | tde-packaging-59dd46ef985a719579132efa6a9aa49bfeeae112.tar.gz tde-packaging-59dd46ef985a719579132efa6a9aa49bfeeae112.zip |
better late than never, hm...
Diffstat (limited to 'opensuse/core/tdelibs.old/kdesu-settings.diff')
-rw-r--r-- | opensuse/core/tdelibs.old/kdesu-settings.diff | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/opensuse/core/tdelibs.old/kdesu-settings.diff b/opensuse/core/tdelibs.old/kdesu-settings.diff new file mode 100644 index 000000000..fc24c09b6 --- /dev/null +++ b/opensuse/core/tdelibs.old/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); |