diff options
-rw-r--r-- | kcontrol/kdm/main.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/kcontrol/kdm/main.cpp b/kcontrol/kdm/main.cpp index 00239636c..02ec37f9b 100644 --- a/kcontrol/kdm/main.cpp +++ b/kcontrol/kdm/main.cpp @@ -173,7 +173,13 @@ KDModule::KDModule(TQWidget *parent, const char *name, const TQStringList &) kdWarning() << "user(s) '" << tgmapci.data().join(",") << "' have unknown GID " << tgmapci.key() << endl; - config = new KSimpleConfig( TQString::tqfromLatin1( KDE_CONFDIR "/kdm/kdmrc" )); + struct stat st; + if( stat( KDE_CONFDIR "/kdm/kdmdistrc" ,&st ) == 0) { + config = new KSimpleConfig( TQString::tqfromLatin1( KDE_CONFDIR "/kdm/kdmdistrc" )); + } + else { + config = new KSimpleConfig( TQString::tqfromLatin1( KDE_CONFDIR "/kdm/kdmrc" )); + } TQVBoxLayout *top = new TQVBoxLayout(this); tab = new TQTabWidget(this); |