Public bug reported: For my project's test suite, I use libqtdbustest to set up a private session bus in order to isolate them from my user session, and to isolate tests from each other. To work reliably, tests need to use the QDBusConnection provided by libqtdbustest rather than the shared connection returned by QDBusConnection:sessionBus().
At present there is no way to tell libOnlineAccountsQt to use an alternative connection, so it may end up trying to talk to a stale session bus that has been shut down. Ideally, I'd like a second constructor to Manager that takes a connection. Something like: Manager(const QString& applicationId, const QDBusConnection& bus, QObject *parent=nullptr); After quick look at the source code, this doesn't look like it'd be too difficult to add. ** Affects: online-accounts-api (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1602153 Title: Please add a way to create a Manager instance with a custom QDBusConnection To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/online-accounts-api/+bug/1602153/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs