Comment Actions
*If* we do need something like this, there's a more atomic approach to doing it using service name queuing compared to waiting for name lost and racing again.
Effectively:
bus.registerService(myServiceName, QDBusConnectionInterface::QueueService)
if (isRegistered()) {
continue running app
} else {
connect(&bus, &QDBusConnection::serviceRegistered, continue running app
}