<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(166,77,121)">Hi All,<br><br>Greetings.<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(166,77,121)">
I recently migrated from <b>dbus-glib</b> to <b>gdbus</b> APIs in one of my application.<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(166,77,121)">This application (<b>my-app</b>) is basically:<br>
- a daemon which has exposed few dbus methods & signal over the<b> SYSTEM </b>bus<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(166,77,121)">- also includes a library (<b>library-1</b>) which in turn has registered to some dbus signal from one more daemon (<b>daemon-1</b>) over the <b>SYSTEM BUS<br>
</b><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(166,77,121)">The issue I'm facing after the migration to gdbus APIs is that, I'm unable to receive the signals from daemon-1 in the library-1 instance of my-app.<br>
</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(166,77,121)">However all other processes using library-1 are getting these signals.<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(166,77,121)">
Before the migration, everything used to work just fine.<br>And furthermore, If I change the owing-bus of my-app from SYSTEM bus to SESSION bus, things work fine and I started getting those daemon-1 signals in library-1 instance.<br>
<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(166,77,121)">------------ my-app owing bus API------------<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(166,77,121)">
id = g_bus_own_name(G_BUS_TYPE_SYSTEM, SERVICE_NAME,<br> G_BUS_NAME_OWNER_FLAGS_REPLACE, NULL,<br> __request_name_cb, __lost_name_cb, NULL, NULL);<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(166,77,121)">
Note:<br>I tried with other parameter without any success:<br><pre class="">G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT<br>G_BUS_NAME_OWNER_FLAGS_NONE<br></pre><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(166,77,121)">
-----------<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(166,77,121)">Please let me know if there is something specific to be taken care of in this kind of situation.<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(166,77,121)">
If you need any more information, please let me know.<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(166,77,121)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(166,77,121)">
Thanks in advance.<br><br>Regards,<br>Naveen<br></div></div>