I’m desperately trying to create a DBusProxy asynchronously through the g_dbus_proxy_new_for_bus function.
Unfortunately after calling the g_dbus_proxy_new_for_bus function it seems to be blocked and the callback (the AsyncReadyCallbackcallback parameter) passed to the g_dbus_proxy_new_for_bus function is never called.
Could you please provide an example ? The only example I could find were with the g_dbus_proxy_new_for_bus_sync function.
I, indeed, forgot to create a GMainContext and thanks to @dkondor I ran the GMainLoop in another thread which also solved my problem. g_main_loop_run is a blocking function.