Make sure kdeconnectd gets started when required

BUG: 352522
BUG: 352520
This commit is contained in:
Aleix Pol 2015-09-10 20:20:44 +02:00
parent df81ed0a33
commit 972c260628
2 changed files with 4 additions and 1 deletions

View file

@ -1,3 +1,3 @@
[D-BUS Service]
Name=org.kde.kdeconnect
Exec=${LIBEXEC_INSTALL_DIR}/kdeconnectd
Exec=@KDE_INSTALL_FULL_LIBEXECDIR@/kdeconnectd

View file

@ -23,6 +23,9 @@
QString DaemonDbusInterface::activatedService() {
static const QString service = "org.kde.kdeconnect";
QDBusConnection::sessionBus().interface()->startService(service);
if (!QDBusConnection::sessionBus().interface()->isValid()) {
qWarning() << "error activating kdeconnectd:" << QDBusConnection::sessionBus().interface()->lastError();
}
return service;
}