Given a gobject service:<br>&nbsp; dbus_g_connection_register_g_object (bus, &quot;/SomeObject&quot;, G_OBJECT (obj));<br><br>This gobject could release the service he provides, this way:<br>g_object_unref (obj);<br>&nbsp;
and dbus_g_proxy_call (bus_proxy, &quot;ReleaseName&quot;, &amp;error,<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; G_TYPE_STRING, &quot;org.designfu.SampleService&quot;,<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; G_TYPE_INVALID,<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; G_TYPE_UINT, &amp;request_name_result,<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; G_TYPE_INVALID))<br><br>I would like to have a proxy notified when the gobject service has released the service, or <br>has been destroyed.<br>&nbsp; proxy = dbus_g_proxy_new_for_name_owner (bus, &quot;org.designfu.SampleService
&quot;, <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &quot;/SomeObject&quot;, &quot;org.designfu.SampleInterface&quot;, &amp;error);<br>
either with a weak ref: <br>&nbsp; g_object_weak_ref (proxy, (GWeakNotify)_proxy_destroy, NULL);<br>or a distroy signal (I use the &quot;name_owner&quot; proxy):<br>&nbsp; g_signal_connect(proxy, &quot;destroy&quot;, <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; G_CALLBACK(_proxy_destroy), proxy);
<br><br>Unfortunately, the proxy destroy signal is emited only when the process <br>where the service-object is living is terminated (killed or exited). <br><br>I think it's related to a &quot;1:xxx&quot; id still on the bus after the unref...
<br><br>I hope you will understand what I am talking about,&nbsp; I am sorry to have a so<br>poor english and not a deep understanding of dbus...<br><br>Thanks, <br><br><div><span class="gmail_quote">On 7/31/06, <b class="gmail_sendername">
John (J5) Palmieri</b> &lt;<a href="mailto:johnp@redhat.com">johnp@redhat.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm not totally sure what you want either.&nbsp;&nbsp;What exactly should be<br>happening?&nbsp;&nbsp;Is destroy not getting called when you do the unref?&nbsp;&nbsp;The<br>ReleaseName call should generate a NameOwnerChanged signal.&nbsp;&nbsp;If not it<br>is a bug.
<br><br>On Mon, 2006-07-31 at 15:47 -0400, Havoc Pennington wrote:<br>&gt;<br>&gt; Marc-André Lureau wrote:<br>&gt; &gt; The two process exist in my project, but I can't get the signal<br>&gt; &gt; in the proxy process owner.
<br>&gt; &gt;<br>&gt; &gt; And in the modified example-service.c,&nbsp;&nbsp;there is only one process<br>&gt; &gt; and no notification neither.<br>&gt; &gt;<br>&gt; &gt; Should I read some DBus code now?<br>&gt; &gt;<br>&gt; &gt; (cf. 
<a href="http://pastebin.ca/108858">http://pastebin.ca/108858</a>)<br>&gt; &gt;<br>&gt; &gt;<br>&gt;<br>&gt; I think I don't understand what you're asking...<br>&gt;<br>&gt; Havoc<br>&gt; _______________________________________________
<br>&gt; dbus mailing list<br>&gt; <a href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a><br>&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/dbus">http://lists.freedesktop.org/mailman/listinfo/dbus
</a><br>--<br>John (J5) Palmieri &lt;<a href="mailto:johnp@redhat.com">johnp@redhat.com</a>&gt;<br><br></blockquote></div><br><br clear="all"><br>-- <br>Marc-André Lureau, GSmartMix