Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/activity/activityfactory.py
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <quinticent@localhost.localdomain>2007-03-05 21:14:11 (GMT)
committer John (J5) Palmieri <quinticent@localhost.localdomain>2007-03-05 21:14:11 (GMT)
commitb21f1a3b8070c138fb2484de045d3a275463f1bf (patch)
treeffb1b43f13a01295bfeb24b407db0f5d105efdf2 /sugar/activity/activityfactory.py
parent05081b3fa525cf0b090b0c1be520fd5e1309774e (diff)
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
Diffstat (limited to 'sugar/activity/activityfactory.py')
-rw-r--r--sugar/activity/activityfactory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar/activity/activityfactory.py b/sugar/activity/activityfactory.py
index 7901ed2..695d149 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(),