thiago at kde.org
Tue Mar 16 23:24:10 PDT 2010
Em Quarta-feira 17. Março 2010, às 07.05.02, Cem Eliguzel escreveu:
> Thanks Thiago.
> What I don't understand is why there does not exist a propagation
> mechanism from dbus to applications via function
> callbacks in order to handle disconnection mechanism.
There is. If you disable exit-on-disconnect, then the library will tell you
that the DBusConnection disconnected. You should cleanly exit the application
at that point.
> Also, I strive to understand why the connection is broken. It's not because
> of the fact that dbus-daemon died.
> The dbus-daemon and thus the session is still alive. The application can
> reconnect the dbus session next time
> it is launched.
Then it's because you sent something broken to the bus. When that happens, the
bus disconnects you.
> And, I can't see anything wrong with the dbus communictaion. Here is the
> last few messages printed by dbus-monitor:
You won't see broken messages in dbus-monitor.
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 190 bytes
Desc: This is a digitally signed message part.
More information about the dbus