diff options
Diffstat (limited to 'kdecore/sycoca/ksycoca.cpp')
-rw-r--r-- | kdecore/sycoca/ksycoca.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kdecore/sycoca/ksycoca.cpp b/kdecore/sycoca/ksycoca.cpp index dfbcbb6..5c1d6a5 100644 --- a/kdecore/sycoca/ksycoca.cpp +++ b/kdecore/sycoca/ksycoca.cpp @@ -22,7 +22,9 @@ #include "ksycoca_p.h" #include "ksycocatype.h" #include "ksycocafactory.h" +#ifndef KDE_NO_DBUS #include "ktoolinvocation.h" +#endif #include "kglobal.h" #include "kmemfile.h" #include "kde_file.h" @@ -437,7 +439,9 @@ bool KSycocaPrivate::checkDatabase(BehaviorsIfNotFound ifNotFound) // but otherwise we simply need to run kbuildsycoca to recreate the sycoca file. if (!kdeinitRunning) { kDebug(7011) << "We have no database.... launching kdeinit"; +#ifndef KDE_NO_DBUS KToolInvocation::klauncher(); // this calls startKdeinit, and blocks until it returns +#endif // and since kdeinit4 only returns after kbuildsycoca4 is done, we can proceed. } else { //kDebug(7011) << QThread::currentThread() << "We have no database.... launching" << KBUILDSYCOCA_EXENAME; |