Make sure kdeconnectd gets started when required
BUG: 352522 BUG: 352520
This commit is contained in:
parent
df81ed0a33
commit
972c260628
2 changed files with 4 additions and 1 deletions
|
@ -1,3 +1,3 @@
|
|||
[D-BUS Service]
|
||||
Name=org.kde.kdeconnect
|
||||
Exec=${LIBEXEC_INSTALL_DIR}/kdeconnectd
|
||||
Exec=@KDE_INSTALL_FULL_LIBEXECDIR@/kdeconnectd
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue