diff options
| -rw-r--r-- | CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/main.cpp | 3 |
3 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e2e93b146..9899ed0de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,7 +19,7 @@ ecm_setup_version(${DOLPHIN_VERSION} VARIABLE_PREFIX DOLPHINPRIVATE SOVERSION 5 ) -find_package(KF5 REQUIRED COMPONENTS DocTools Init KCMUtils KDELibs4Support NewStuff CoreAddons I18n) +find_package(KF5 REQUIRED COMPONENTS DocTools Init KCMUtils KDELibs4Support NewStuff CoreAddons I18n DBusAddons) find_package(KF5 COMPONENTS Activities) find_package(Phonon4Qt5 CONFIG REQUIRED) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6ae11c833..0c31ed936 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -237,6 +237,7 @@ target_link_libraries(kdeinit_dolphin KF5::KDELibs4Support KF5::I18n KF5::CoreAddons + KF5::DBusAddons ) if (KF5Activities_FOUND) diff --git a/src/main.cpp b/src/main.cpp index ed4cfff20..ed4c9f9d8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -22,6 +22,7 @@ #include "dolphinmainwindow.h" #include "dolphin_generalsettings.h" +#include <KDBusService> #include <KAboutData> #include <QCommandLineParser> #include <QCommandLineOption> @@ -75,6 +76,8 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv) KAboutData::setApplicationData(aboutData); + KDBusService dolphinDBusService; + QCommandLineParser parser; parser.addVersionOption(); parser.addHelpOption(); |
