DBus binding for Tcl

Artifact Content
Login

Artifact 43c001049a6a35f878cbbe1c0cbc23adac1332a0fe48f743e48413c4a93cb798:

Wiki page [Disconnect] by schelte 2018-06-22 10:11:42.
D 2018-06-22T10:11:42.371
L Disconnect
U schelte
W 461
When the D-Bus daemon terminates, the local D-Bus library sends a <i>Disconnected</i> signal to the application. The application can listen for this signal like any other D-Bus signal and appropriate actions can be taken.

No filter is necessary to receive this signal.

For example, to terminate the application with an exit code of 99 when the D-Bus disappears:<verbatim>
dbus listen [dbus info local] Disconnected {apply {args {exit 99}}}
</verbatim>

Z a78e5ff44c91f77211b5deca7bb67283