Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
kdebase4-runtime
kdesu-remember-keep-password.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kdesu-remember-keep-password.diff of Package kdebase4-runtime
Subject: Default to kdesu password remembering on, but remember last state From: Lubos Lunak Feature: bnc#386531 Patch-upstream: no Relates: kdebase3/kdesu-remember-keep-password.diff, kdelibs4/kdesu-settings.diff Index: kdesu/kdesu/kdesu.cpp =================================================================== --- kdesu/kdesu/kdesu.cpp.orig +++ kdesu/kdesu/kdesu.cpp @@ -353,6 +353,9 @@ static int startApp() // Read configuration KConfigGroup config(KGlobal::config(), "Passwords"); int timeout = config.readEntry("Timeout", defTimeout); + // 'keep' means whether to show the checkbox, 'keepByDefault' means + // whether it should be checked by default + bool keepByDefault = config.readEntry("Keep", bool(defKeep)); // Check if we need a password SuProcess proc; @@ -384,8 +387,7 @@ static int startApp() KDEsuDialog dlg(user, auth_user, keep && !terminal, icon, withIgnoreButton); if (prompt) dlg.addCommentLine(i18n("Command:"), command); - if (defKeep) - dlg.setKeepPassword(true); + dlg.setKeepPassword(keepByDefault); if ((priority != 50) || (scheduler != SuProcess::SchedNormal)) { @@ -414,6 +416,7 @@ static int startApp() change_uid = false; password = dlg.password(); keep = dlg.keepPassword(); + config.writeEntry("Keep", keep); #ifdef Q_WS_X11 data.setSilent( KStartupInfoData::No ); KStartupInfo::sendChange( id, data );
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor