Thanks <span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse;color:rgb(121, 6, 25);white-space:nowrap">Thiago.</span><div>
<font color="#790619" face="arial, sans-serif"><span style="border-collapse:collapse;white-space:nowrap"><br>
</span></font></div><div><font color="#790619" face="arial, sans-serif"><span style="border-collapse:collapse;white-space:nowrap"><br></span></font></div><div><font color="#790619" face="arial, sans-serif"><span style="border-collapse:collapse;white-space:nowrap">What I don't understand is why there does not exist a propagation mechanism from dbus to applications via function </span></font></div>
<div><font color="#790619" face="arial, sans-serif"><span style="border-collapse:collapse;white-space:nowrap">callbacks in order to handle disconnection mechanism.</span></font></div><div><font color="#790619" face="arial, sans-serif"><span style="border-collapse:collapse;white-space:nowrap"><br>
</span></font></div><div><font color="#790619" face="arial, sans-serif"><span style="border-collapse:collapse;white-space:nowrap"><br></span></font></div><div><font color="#790619" face="arial, sans-serif"><span style="border-collapse:collapse;white-space:nowrap">Also, I strive to understand why the connection is broken. It's not because of the fact that dbus-daemon died. </span></font></div>
<div><font color="#790619" face="arial, sans-serif"><span style="border-collapse:collapse;white-space:nowrap">The dbus-daemon and thus the session is still alive. The application can reconnect the dbus session next time </span></font></div>
<div><font color="#790619" face="arial, sans-serif"><span style="border-collapse:collapse;white-space:nowrap">it is launched.</span></font></div><div><font color="#790619" face="arial, sans-serif"><span style="border-collapse:collapse;white-space:nowrap"><br>
</span></font></div><div><font color="#790619" face="arial, sans-serif"><span style="border-collapse:collapse;white-space:nowrap"><br>
</span></font>And, I can't see anything wrong with the dbus communictaion. Here is the last few messages printed by dbus-monitor:</div><div><br></div><div><br></div><div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);">signal sender=:1.2 -> dest=(null destination) serial=1717 path=/org/gnome/Rygel1; interface=org.gnome.Rygel1; member=PlayerPlaying</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"> string "Bob Acri"</span></div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"> string "Sleep Away"</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><br></span></div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);">signal sender=:1.2 -> dest=(null destination) serial=1718 path=/org/gnome/Rygel1; interface=org.gnome.Rygel1; member=PlayerStopped</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><br></span></div><div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);">signal sender=org.freedesktop.DBus -> dest=(null destination) serial=7 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"> string "org.gnome.Rygel1"</span></div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"> string ":1.2"</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"> string ""</span></div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);">signal sender=org.freedesktop.DBus -> dest=(null destination) serial=8 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"> string ":1.2"</span></div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"> string ":1.2"</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"> string ""</span></div><div><br></div><div><br></div><div>Do you see anything wrong here? </div><div><br></div><div><br></div><div>
Kind regards,</div><div>Cem Eliguzel</div><div><br></div><div><br></div></div><div class="gmail_quote">On Mon, Mar 15, 2010 at 11:59 PM, Thiago Macieira <span dir="ltr"><<a href="mailto:thiago@kde.org" target="_blank">thiago@kde.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Em Segunda-feira 15. Março 2010, ŕs 22.38.07, Cem Eliguzel escreveu:<br>
<div>> Hello,<br>
><br>
> I have a disconnected dbus connection problem. When it happens the<br>
> application using it exits. I have noticed that exit_on_disconnect is set<br>
> to TRUE when a connection object is created. I have two questions<br>
> regarding this:<br>
><br>
><br>
</div>> 1. What's the rationale behind calling _exit() on disconnection<br>
<br>
Because usually a program's lifetime is tied to the session it is part of and<br>
the D-Bus session daemon's lifetime determines the session lifetime. So when<br>
the server exits and closes the connection, most applications should clean up<br>
and exit too.<br>
<br>
> 2. What can be the reason for dbus connection to disconnect?<br>
<br>
There are many reasons, including the server exiting or you sending invalid<br>
data.<br>
<font color="#888888"><br>
--<br>
Thiago Macieira - thiago (AT) <a href="http://macieira.info" target="_blank">macieira.info</a> - thiago (AT) <a href="http://kde.org" target="_blank">kde.org</a><br>
Senior Product Manager - Nokia, Qt Development Frameworks<br>
PGP/GPG: 0x6EF45358; fingerprint:<br>
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358<br>
</font><br>_______________________________________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org" target="_blank">dbus@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target="_blank">http://lists.freedesktop.org/mailman/listinfo/dbus</a><br>
<br></blockquote></div><br></div>