How to receive async callback in GUI application without glib main event loop?

,

I have a GUI application that runs in a different event loop, NOT glib event loop.

And there is a gdbus service running in the system which provides certain asynchronous methods like setip, getip, etc over dbus

Now I want to call the gdbus method asynchronously from GUI application e.g getip, which after completion should invoke the callback in GUI application.

Ideally, to make this work, I need to have a glib main event loop in the GUI application.

Is there any way to avoid the glib main event loop in GUI application & still receive the async callback?

Yes and no, the loop must spin otherwise GIO can’t do anything

However that doesn’t mean you have to use g_main_loop_run:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.