-rw-r--r-- | microkde/kdecore/kstandarddirs.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/microkde/kdecore/kstandarddirs.cpp b/microkde/kdecore/kstandarddirs.cpp index f3584d7..cf0d1ee 100644 --- a/microkde/kdecore/kstandarddirs.cpp +++ b/microkde/kdecore/kstandarddirs.cpp @@ -1280,13 +1280,25 @@ void KStandardDirs::addKDEDefaults() localKdeDir += '/'; #endif //QMessageBox::information( 0,"localKdeDir",localKdeDir, 1 ); } else { - KConfig cfg ( QDir::homeDirPath() + "/.microkdehome" ); + QString confFile; +#ifdef DESKTOP_VERSION + confFile = qApp->applicationDirPath ()+ "/.microkdehome" ; + QFileInfo fi ( confFile ); + if ( !fi.exists() ) + confFile = QDir::homeDirPath() + "/.microkdehome"; + else + qDebug("Loading path info from " + confFile ); + +#else + confFile = QDir::homeDirPath() + "/.microkdehome"; +#endif + KConfig cfg ( confFile ); cfg.setGroup("Global"); localKdeDir = cfg.readEntry( "MICROKDEHOME", QDir::homeDirPath() + "/kdepim/" ); } } else { |