diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,7 +64,6 @@ find_package(KF5KontactInterface ${KONTACTINTERFACE_LIB_VERSION} CONFIG REQUIRED) find_package(KF5Libkdepim ${LIBKDEPIM_LIB_VERSION_LIB} CONFIG REQUIRED) find_package(KF5GrantleeTheme ${LIBGRANTLEETHEME_LIB_VERSION_LIB} CONFIG REQUIRED) -find_package(KF5KdepimDBusInterfaces ${KDEPIM_APPS_LIB_VERSION_LIB} CONFIG REQUIRED) include_directories(${kontact_SOURCE_DIR} ${kontact_BINARY_DIR}) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -63,7 +63,6 @@ target_link_libraries(kontact_bin KF5::Service - KF5::KdepimDBusInterfaces kontactprivate KF5::KontactInterface KF5::Crash diff --git a/src/main.cpp b/src/main.cpp --- a/src/main.cpp +++ b/src/main.cpp @@ -27,8 +27,6 @@ #include "prefs.h" using namespace Kontact; -#include - #include #include #include @@ -41,6 +39,8 @@ #include #include +#include +#include #include #include @@ -150,7 +150,7 @@ mMainWindow->selectPlugin(moduleName); } - KPIM::ReminderClient::startDaemon(); + QDBusConnection::sessionBus().interface()->startService(QStringLiteral("org.kde.kontact")); // Handle startup notification and window activation // (The first time it will do nothing except note that it was called)