How to send IM message through D-BUS without forking UI up
Sam Lin
itrs.lin at gmail.com
Fri Sep 5 06:40:16 EDT 2008
The code works by opening a window on screen normally.
What I want to do is sending a message in background/command line
without opening any
UI on screen.
Sam
Sadrul Habib Chowdhury ??:
> * 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/devel/attachments/20080905/8b1710b2/attachment.html>
More information about the Devel
mailing list