dbus call into a program -> hangs
thiago at kde.org
Fri Nov 17 14:26:07 PST 2006
Kacper Wysocki wrote:
>Upon Meld startup, before meld goes into its mainloop, I register the
>dbus service methods and then pass control back to the application.
>Trouble is, whenever I try to invoke any of these methods from another
>application both the called and the calling application freeze - until
>the process that registered the dbus service methods is cancelled.
Did the application make it into the mainloop?
>If I run the registration of the object and methods in a standalone
>app that loops with the gobject mainloop (no meld), method invokation
>over dbus by other apps works as expected.
>Is there something basic that I'm missing here about dbus?
No. But the mainloop has to be spinning for remote calls to be accepted.
>Meld uses the gnomeglade.GnomeApp.main() loop, and I'm wondering
>whether that's where the problem lies, with meld not processing the
>incoming dbus requests or whatnot. If that's the case, could someone
>kindly give me some pointers as to how to deal with this?
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20061117/768461b7/attachment.pgp
More information about the dbus