Fwd: DBUS - message sent when system shutdown occurs

Rémi Denis-Courmont remi at remlab.net
Thu Jan 6 08:10:07 PST 2011


Le jeudi 6 janvier 2011 15:18:52 Alexandru Tataru, vous avez écrit :
>   The code I use is this one. I program in C++/Qt. I listem for
> org.freedesktop.DBus service and I want my object(server) to call a method
> (info) when the system shutdown or dbus shutdown signal occurs. Please
> help. This code is working because I could emit signals created by my test
> application application and the server responded to them but I do not know
> what the system/dbus shutdown signal/message is.

There is no D-Bus signal for this, nor is there any need for it.
The bus will close the connection, so you simply need to watch the status fo 
the underlying socket or whatever is used.

-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis


More information about the dbus mailing list