Detectin mainloop integration

Alexander Larsson alexl at
Thu Sep 20 00:35:13 PDT 2007

In gvfs I'm using my own glib mainloop integration code (for various
reasons). This is a problem if the application using gvfs has used some
other form of mainloop integration (for instance the dbus-glib one). Is
there some way to detect that someone called e.g.
dbus_connection_set_watch_functions() before so that I can avoid doing
the integration myself?

Or should I just use a private connection?

More information about the dbus mailing list