Using dbus_connection_send_with_reply() with and without dispatcher

Havoc Pennington havoc.pennington at gmail.com
Thu Mar 26 06:59:10 PDT 2009


Hi,

On Thu, Mar 26, 2009 at 2:09 AM, Soh Kam Yung <sohkamyung at gmail.com> wrote:
> Any suggestions or hints?
>

You basically have to require that the app connects dbus to the main
loop (runs a dispatcher), or else require that it does not and do it
yourself, or else have an API like set_dispatch_dbus(TRUE) in your
library. Somehow somebody has to dispatch...

The only other alternative might be to open your own private
DBusConnection and set up dispatch on that. Which adds significant
bloat if the app was going to dispatch anyway. But it's an option.

Havoc


More information about the dbus mailing list