From b21f1a3b8070c138fb2484de045d3a275463f1bf Mon Sep 17 00:00:00 2001 From: "John (J5) Palmieri" Date: Mon, 5 Mar 2007 16:14:11 -0500 Subject: [PATCH] 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 --- sugar/activity/activityfactory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sugar/activity/activityfactory.py b/sugar/activity/activityfactory.py index 7901ed2e..695d149c 100644 --- a/sugar/activity/activityfactory.py +++ b/sugar/activity/activityfactory.py @@ -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(),