From 25cb6c90961abacebe985dc98bdb0612dc3a3ffe Mon Sep 17 00:00:00 2001 From: Piyush Aggarwal Date: Fri, 11 Jun 2021 23:45:39 +0530 Subject: [PATCH] urlhandler: make it a unique service --- urlhandler/CMakeLists.txt | 1 + urlhandler/kdeconnect-handler.cpp | 2 ++ 2 files changed, 3 insertions(+) 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"));