<meta http-equiv="content-type" content="text/html; charset=utf-8">Hi, <div>I am writting pidgin plugin using free pascal for listening signals (incoming and outgoing chat messages). <div>This is my code to connect: </div>
<div><br></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><br></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><br></div><div>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? </div>
<div><br></div><div>Regards and sorry for my English.</div></div>