Using dbus_connection_send_with_reply() with and without dispatcher

Soh Kam Yung sohkamyung at
Fri Mar 27 01:45:28 PDT 2009

On Thu, Mar 26, 2009 at 9:59 PM, Havoc Pennington
<havoc.pennington at> wrote:
> [...]
> 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

Thanks for the tips.  Looks like writing a C-API wrapper for libdbus
isn't as straightforward as I thought.

Soh Kam Yung
my Google Reader Shared links:
my Google Reader Shared SFAS links:

More information about the dbus mailing list