workaround to fix blocking when launching activities

* set follow_name_owner_changes to true when creating a proxy for an activity
  which causes proxies to be late bound and not make a blocking call to
  start a service
This commit is contained in:
John (J5) Palmieri 2007-03-05 16:14:11 -05:00
parent 05081b3fa5
commit b21f1a3b80

View File

@ -70,7 +70,7 @@ class ActivityCreationHandler(gobject.GObject):
bundle = registry.get_bundle(service_name)
bus = dbus.SessionBus()
proxy_obj = bus.get_object(service_name, bundle.get_object_path())
proxy_obj = bus.get_object(service_name, bundle.get_object_path(), follow_name_owner_changes=True)
factory = dbus.Interface(proxy_obj, "com.redhat.Sugar.ActivityFactory")
factory.create(self._activity_handle.get_dict(),