Opening a pidgin IM window from another program

Will Thompson will at willthompson.co.uk
Thu Jun 4 18:19:53 EDT 2009


Hi,

Michael wrote:
> I'm writing a multi-user web-based application, and would like to be
> able to click on someone's name on an HTML page and open an IM window to
> that person, but the Pidgin command-line help does not give any
> indication as to how to specify who to open an IM window to.   I've
> looked through the Pidgin online docs at developer.pidgin.im and cannot
> find any mention there, either.
> Can anyone point me to a document that will let me know how to create a
> n HTML link like this?

The 'purple-url-handler' script that ships with pidgin (in the
libpurple/ directory in the source tarball, and in the 'libpurple-bin'
package on Debian-like systems) can be hooked up to handle URLs like
"xmpp:romeo at montague.net?message". It uses libpurple's D-Bus interface.
You probably want to set this up as your browser's URL handler for
"xmpp:", "aim:" etc. URLs.

libpurple also ships with 'purple-remote', which is somewhat more
general and also uses libpurple's D-Bus interface.

On Windows, where D-Bus is not, I don't know if there are any alternatives.

Regards,
-- 
Will

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://pidgin.im/pipermail/devel/attachments/20090604/9fd1fa45/attachment.sig>


More information about the Devel mailing list