urlhandler: make it a unique service

This commit is contained in:
Piyush Aggarwal 2021-06-11 23:45:39 +05:30
parent 7f7f0d8992
commit 25cb6c9096
2 changed files with 3 additions and 0 deletions

View file

@ -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
)

View file

@ -18,6 +18,7 @@
#include <KAboutData>
#include <KLocalizedString>
#include <KUrlRequester>
#include <KDBusService>
#include <dbushelper.h>
@ -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"));