summaryrefslogtreecommitdiffstats
path: root/tdesu/tdesu/tdesu.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-09 21:11:40 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-09 21:11:40 -0500
commit8d7bb2841842aca2eb69bfd847b8674abfa06425 (patch)
treea73916a40c62cd525d3db7a0d14543b135e9f69b /tdesu/tdesu/tdesu.cpp
parent8a61818a86d7d7f6b6332790d80b50a8b3a73146 (diff)
downloadtdebase-8d7bb2841842aca2eb69bfd847b8674abfa06425.tar.gz
tdebase-8d7bb2841842aca2eb69bfd847b8674abfa06425.zip
Add keep password option to tdesu
This closes Bug 388
Diffstat (limited to 'tdesu/tdesu/tdesu.cpp')
-rw-r--r--tdesu/tdesu/tdesu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tdesu/tdesu/tdesu.cpp b/tdesu/tdesu/tdesu.cpp
index bb473a7ef..3511b1fa0 100644
--- a/tdesu/tdesu/tdesu.cpp
+++ b/tdesu/tdesu/tdesu.cpp
@@ -274,7 +274,7 @@ static int startApp()
// Try to exec the command with tdesud.
bool keep = !args->isSet("n") && have_daemon;
- bool terminal = true;
+ bool terminal = args->isSet("t");
bool new_dcop = args->isSet("newdcop");
bool withIgnoreButton = args->isSet("ignorebutton");
@@ -360,7 +360,7 @@ static int startApp()
KStartupInfoData data;
data.setSilent( KStartupInfoData::Yes );
KStartupInfo::sendChange( id, data );
- KDEsuDialog dlg(user, auth_user, keep && !terminal,icon, withIgnoreButton);
+ KDEsuDialog dlg(user, auth_user, keep && !terminal,icon, withIgnoreButton, timeout);
if (prompt)
dlg.addLine(i18n("Command:"), command);
if ((priority != 50) || (scheduler != SuProcess::SchedNormal))