How to send IM message through D-BUS without forking UI up

Sadrul Habib Chowdhury imadil at gmail.com
Fri Sep 5 06:47:20 EDT 2008


* Sam Lin had this to say on [05 Sep 2008, 18:12:52 +0800]:
> Hi All,
> 
> I can use python-dbus to send IM message through D-BUS.
> ex.
> 
> ...
> 
> conversation = purple.PurpleConversationNew(1,acc,"foo at bar <http://pidgin.im/cgi-bin/mailman/listinfo/devel>")
> im = purple.PurpleConversationGetImData(conversation)
> purple.PurpleConvImSend(im,"hi")
> 
> But the call purple.PurpleConversationNew () will fork pidgin dialog UI up.

What exactly do you mean?

> Is there any way to send IM message through D-BUS without forking UI up ?

The above code should work (and does for me). Perhaps you can create a
small sample code where it doesn't work?

Sadrul




More information about the Devel mailing list