Commit e05769e6 authored by Albert Vaca Cintora's avatar Albert Vaca Cintora
Browse files

Fix initial set of devices not being emitted in dbus

parent bd27aec9
Pipeline #36211 failed with stage
in 15 minutes and 27 seconds
......@@ -79,6 +79,11 @@ void Daemon::init()
#endif
}
//Register on DBus
qDBusRegisterMetaType< QMap<QString,QString> >();
DBusHelper::sessionBus().registerService(QStringLiteral("org.kde.kdeconnect"));
DBusHelper::sessionBus().registerObject(QStringLiteral("/modules/kdeconnect"), this, QDBusConnection::ExportScriptableContents);
//Read remembered paired devices
const QStringList& list = KdeConnectConfig::instance().trustedDevices();
for (const QString& id : list) {
......@@ -92,11 +97,6 @@ void Daemon::init()
a->onStart();
}
//Register on DBus
qDBusRegisterMetaType< QMap<QString,QString> >();
DBusHelper::sessionBus().registerService(QStringLiteral("org.kde.kdeconnect"));
DBusHelper::sessionBus().registerObject(QStringLiteral("/modules/kdeconnect"), this, QDBusConnection::ExportScriptableContents);
NotificationServerInfo::instance().init();
qCDebug(KDECONNECT_CORE) << "Daemon started";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment