diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-12-06 16:10:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-12-06 16:10:43 -0600 |
commit | ff7202f0a637ce0cf03d10be6d0ceb8289d00d57 (patch) | |
tree | 356369619dc082df6daea0c957514be7ede8dac9 /src | |
parent | 568207a123e4a7d20095b2529f1c3cea83c788e5 (diff) | |
download | tdmtheme-r14.0.0.tar.gz tdmtheme-r14.0.0.zip |
Fix inability to apply theme due to erroneous SAK configuration defaultr14.0.0
Properly disable module when loaded by non-root user
Remove uneeded files
Diffstat (limited to 'src')
-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... |