View Single Post
Posts: 249 | Thanked: 277 times | Joined on May 2010 @ Brighton, UK
#1
I'm trying to display the Maemo 5 accounts UI using DBus (via Qt's QDbus). This works fine using dbus-send on the command line.

However, when I call it from code, the first call I get back a fail of sorts (I get an empty error message and the proxy isn't valid)...

...during which, the rtcom-accounts-ui service process is fired up by DBus.

The next call succeeds fine. Once the dialog is closed however, after a minute or so, the process exits. This would all be fine, but when I invoke the DBus call again, the process doesn't get fired up again, probably due to Dbus seemingly thinking it should still be running, as I instead get the error:
Code:
"Could not get owner of name 'com.nokia.AccountsUI': no such name"
Am I missing something that is preventing DBus from invoking the service again? The inability to automatically fire it up again seems to persist for the lifetime of my process. If I start the process manually from another terminal, then the DBus calls succeeds fine (but the process still exists afterwards).