diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c5577d..205a28f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,6 +51,7 @@ find_package(KF5 5.23 REQUIRED ConfigWidgets CoreAddons Crash + DBusAddons DocTools I18n IconThemes diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 71f60f6..c6c6b5c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -44,6 +44,7 @@ target_link_libraries(partitionmanager ${BLKID_LIBRARIES} KF5::ConfigWidgets KF5::CoreAddons KF5::Crash + KF5::DBusAddons KF5::I18n KF5::IconThemes KF5::JobWidgets diff --git a/src/main.cpp b/src/main.cpp index 6bbfeb5..3d55a73 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -28,6 +28,7 @@ #include #include +#include #include #include #include @@ -85,6 +86,8 @@ int Q_DECL_IMPORT main(int argc, char* argv[]) if (!loadBackend()) return 0; + KDBusService service(KDBusService::Unique); + MainWindow* mainWindow = new MainWindow(); mainWindow->show();