Hi,<br>I'm trying to understand how dbus work. I'm writting plugin for pidgin using free pascal. My plugin listening for pidgin signals. I have question: How can I disconnect from dbus session?<div><br></div><div>Example:</div>
<div><br></div><div><div> { Initializes the errors }</div><div> dbus_error_init(@FDBErr);</div><div><br></div><div> { Connection }</div><div> FDBConn := dbus_bus_get(DBUS_BUS_SESSION, @FDBErr); </div></div><div><br></div>
<div><div> { Request the name of the bus }</div><div> ret := dbus_bus_request_name(FDBConn, 'im.pidgin.purple.PurpleInterface', DBUS_NAME_FLAG_REPLACE_EXISTING, @FDBErr); </div></div><div><br></div><div><br></div>
<div>After this connection I get signals from pidgin, but what I must call to disconnect? Even if I call dbus_connection_close or dbus_connection_unref (which are not allowed for shared connections) I still get signals from pidgin.</div>
<div><br></div><div>Regards</div>