<div class="gmail_quote">Hello,<div><br></div><div> I want to catch a dbus message when the system is about to shutdown. I assume that dbus is sending a message when it is about to close. Can you please tell me what that signal is?</div>
<div> In order to listen for dbus I use a system dbus connection.</div>
<div><br></div><div><div>QDBusConnection::systemBus().connect("", "", "org.freedesktop.DBus", "SYSTEM SHUTDOWN SIGNAL",</div><div> server, SLOT(info()));</div></div>
<div><br></div><div> 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.</div>
<div><br></div><div>Thank you!</div>
</div><br>