mirror of https://github.com/nymea/nymea.git
specify the dbus interface to prevent it from changing with autogenerated stuff
parent
38d1b69e12
commit
ec667f15d9
|
|
@ -36,7 +36,7 @@ NymeaDBusService::NymeaDBusService(const QString &objectPath, QObject *parent) :
|
|||
finalObjectPath.append(part.at(0).toUpper());
|
||||
finalObjectPath.append(part.right(part.length() - 1));
|
||||
}
|
||||
status = s_connection.registerObject(finalObjectPath, parent, QDBusConnection::ExportScriptableSlots);
|
||||
status = s_connection.registerObject(finalObjectPath, "io.guh.nymead", parent, QDBusConnection::ExportScriptableSlots);
|
||||
if (!status) {
|
||||
qCWarning(dcApplication()) << "Failed to register D-Bus object:" << finalObjectPath;
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ bool PushButtonAgent::init(QDBusConnection::BusType busType)
|
|||
return false;
|
||||
}
|
||||
|
||||
QDBusMessage message = QDBusMessage::createMethodCall("io.guh.nymead", "/io/guh/nymead/UserManager", QString(), "RegisterButtonAgent");
|
||||
QDBusMessage message = QDBusMessage::createMethodCall("io.guh.nymead", "/io/guh/nymead/UserManager", "io.guh.nymead", "RegisterButtonAgent");
|
||||
message << qVariantFromValue(QDBusObjectPath("/nymea/pushbuttonhandler"));
|
||||
QDBusMessage reply = bus.call(message);
|
||||
if (!reply.errorName().isEmpty()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue