Use dbus activation to start the presence service

This commit is contained in:
Marco Pesenti Gritti
2006-08-13 00:28:38 +02:00
parent e2e5bc0000
commit c7c71d25a8
3 changed files with 12 additions and 1 deletions
+5
View File
@@ -205,3 +205,8 @@ class PresenceService(gobject.GObject):
def unregister_service_type(self, stype):
self._ps.unregisterServiceType(stype)
def start():
bus = dbus.SessionBus()
ps = dbus.Interface(bus.get_object(DBUS_SERVICE, DBUS_PATH), DBUS_INTERFACE)
ps.start()