diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-04-24 19:21:48 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-04-24 19:21:48 -0500 |
commit | 30617b6fb78c56e76aedd1480429dd4e68da201a (patch) | |
tree | 446b6177c509bd2d9414730179a66f862df9a1c3 /kdesktop/lock/main.cc | |
parent | 073dc86aceaa060597d7653747c3c6c14d0ed59d (diff) | |
download | tdebase-30617b6fb78c56e76aedd1480429dd4e68da201a.tar.gz tdebase-30617b6fb78c56e76aedd1480429dd4e68da201a.zip |
Fix SAK dialog momentary display when SAK disabled
Clean up build warnings in kdesktop
Diffstat (limited to 'kdesktop/lock/main.cc')
-rw-r--r-- | kdesktop/lock/main.cc | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/kdesktop/lock/main.cc b/kdesktop/lock/main.cc index 225d9c5b4..896defd10 100644 --- a/kdesktop/lock/main.cc +++ b/kdesktop/lock/main.cc @@ -29,6 +29,7 @@ #include <kdebug.h> #include <kglobalsettings.h> #include <dcopref.h> +#include <ksimpleconfig.h> #include <tdmtsak.h> @@ -199,7 +200,19 @@ int main( int argc, char **argv ) trinity_desktop_lock_use_system_modal_dialogs = !KDesktopSettings::useUnmanagedLockWindows(); trinity_desktop_lock_delay_screensaver_start = KDesktopSettings::delaySaverStart(); - trinity_desktop_lock_use_sak = KDesktopSettings::useTDESAK(); + + // RAJA + struct stat st; + KSimpleConfig* tdmconfig; + if( stat( KDE_CONFDIR "/tdm/tdmdistrc" , &st ) == 0) { + tdmconfig = new KSimpleConfig( TQString::fromLatin1( KDE_CONFDIR "/tdm/tdmdistrc" )); + } + else { + tdmconfig = new KSimpleConfig( TQString::fromLatin1( KDE_CONFDIR "/tdm/tdmrc" )); + } + tdmconfig->setGroup("X-*-Greeter"); + trinity_desktop_lock_use_sak = tdmconfig->readBoolEntry("UseSAK", true); + delete tdmconfig; if (args->isSet( "internal" )) { while (signalled_run == FALSE) { |