$NetBSD: patch-ac,v 1.2 2010/10/25 20:55:28 markd Exp $ --- kcontrol/kdm/main.cpp.orig 2010-05-27 17:23:09.000000000 +0000 +++ kcontrol/kdm/main.cpp @@ -281,8 +281,12 @@ KConfig *KDModule::createTempConfig() pTempConfigFile->open(); QString tempConfigName = pTempConfigFile->fileName(); + QFile confFile (QString::fromLatin1( "@PKG_SYSCONFDIR@" "/kdm/kdmrc" )); + if ( !confFile.exists() ) + confFile.setFileName (QString::fromLatin1( KDE_CONFDIR "/kdm/kdmrc" )); + KConfig *pSystemKDMConfig = new KConfig( - QString::fromLatin1(KDE_CONFDIR "/kdm/kdmrc"), KConfig::SimpleConfig); + confFile.fileName(), KConfig::SimpleConfig); KConfig *pTempConfig = pSystemKDMConfig->copyTo(tempConfigName); pTempConfig->sync();