diff options
Diffstat (limited to 'src/tdmtheme.cpp')
-rw-r--r-- | src/tdmtheme.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tdmtheme.cpp b/src/tdmtheme.cpp index 644f9cd..a451eb4 100644 --- a/src/tdmtheme.cpp +++ b/src/tdmtheme.cpp @@ -132,9 +132,9 @@ TDMThemeWidget::TDMThemeWidget( TQWidget *parent, const char *name, const TQStri load(); - if (getuid() != 0) { + if (getuid() != 0 || !config->checkConfigFilesWritable( true )) { cUseTheme->setEnabled( false ); - setReadOnly(false); + setReadOnly(true); } } @@ -171,7 +171,7 @@ void TDMThemeWidget::load() config = new TDEConfig( tdmrc ); config->setGroup( "X-*-Greeter" ); - bool sakEnabled = config->readBoolEntry( "UseSAK", true ); + bool sakEnabled = config->readBoolEntry( "UseSAK", false ); if (sakEnabled) { // FIXME // Integrate KDE_BINDIR with Autotools and use this line instead of the one below it... |