DBUS presence

Krzysztof dibo20 at wp.pl
Mon Jun 6 04:50:12 PDT 2011


Hi,
I am writting pidgin plugin using free pascal for listening signals
(incoming and outgoing chat messages).
This is my code to connect:

{ Initializes the errors }
dbus_error_init(@FDBErr);

{ Connection }
FDBConn := dbus_bus_get(DBUS_BUS_SESSION, @FDBErr);

{ Request the name of the bus }
ret := dbus_bus_request_name(FDBConn, 'im.pidgin.purple.PurpleInterface',
DBUS_NAME_FLAG_REPLACE_EXISTING, @FDBErr);

It works but only if I connect when pidgin is running. If my plugin connect
first (I don't get any errors) and then run Pidgin, then I don't get any
signals. How can I check if pidgin dbus is running or connect with correct
flags?

Regards and sorry for my English.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20110606/3ea314a8/attachment.html>


More information about the dbus mailing list