DBUS - Pidgin presence

Krzysztof dibo20 at wp.pl
Mon Jun 6 06:42:10 EDT 2011


Hi,

I am using free pascal for listening for pidgin signals. 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 (receiving and sending chat message).
How can I check if pidgin is running or connect with correct flags?

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/support/attachments/20110606/e86cfd77/attachment-0002.html>


More information about the Support mailing list