Vizible’s Blog

Find Pidgin Protocol ID

Posted in Programming by wearetherock on January 20, 2009

Problem : Don’t know my MSN protocal ID ,

import dbus,gobject

from dbus.mainloop.glib import DBusGMainLoop


bus = dbus.SessionBus()
object = bus.get_object("im.pidgin.purple.PurpleService",

pidgin = dbus.Interface(object, "im.pidgin.purple.PurpleInterface")

def status_change_handler(account, status_old, status_new):
  print pidgin.PurpleAccountGetProtocolId(account)
bus.add_signal_receiver(status_change_handler ,
loop = gobject.MainLoop()


Output :


Tagged with: , , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: