diff --git a/urlhandler/CMakeLists.txt b/urlhandler/CMakeLists.txt index 29e3247c8..b1c09e208 100644 --- a/urlhandler/CMakeLists.txt +++ b/urlhandler/CMakeLists.txt @@ -8,6 +8,7 @@ target_link_libraries(kdeconnect-handler kdeconnectversion Qt5::Widgets KF5::CoreAddons + KF5::DBusAddons KF5::I18n KF5::KIOCore KF5::KIOFileWidgets KF5::KIOWidgets KF5::KIONTLM ) diff --git a/urlhandler/kdeconnect-handler.cpp b/urlhandler/kdeconnect-handler.cpp index b92ca713d..38bdd555b 100644 --- a/urlhandler/kdeconnect-handler.cpp +++ b/urlhandler/kdeconnect-handler.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include @@ -45,6 +46,7 @@ int main(int argc, char** argv) i18n("(C) 2017 Aleix Pol Gonzalez")); about.addAuthor( QStringLiteral("Aleix Pol Gonzalez"), QString(), QStringLiteral("aleixpol@kde.org") ); KAboutData::setApplicationData(about); + KDBusService dbusService(KDBusService::Unique); #ifdef Q_OS_WIN QApplication::setStyle(QStringLiteral("breeze"));