Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/activity/registry.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar/activity/registry.py')
-rw-r--r--sugar/activity/registry.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/sugar/activity/registry.py b/sugar/activity/registry.py
index 1483a78..2f6b567 100644
--- a/sugar/activity/registry.py
+++ b/sugar/activity/registry.py
@@ -49,8 +49,14 @@ class ActivityRegistry(gobject.GObject):
gobject.GObject.__init__(self)
bus = dbus.SessionBus()
+
+ # FIXME: Is follow_name_owner_changes what we really want?
+ # It speeds up the start time by about 2 seconds
+ # but is really a side effect of starting a proxy
+ # in this state (i.e. we don't block in the constructor)
bus_object = bus.get_object(_ACTIVITY_REGISTRY_SERVICE_NAME,
- _ACTIVITY_REGISTRY_PATH)
+ _ACTIVITY_REGISTRY_PATH,
+ follow_name_owner_changes = True)
self._registry = dbus.Interface(bus_object, _ACTIVITY_REGISTRY_IFACE)
self._registry.connect_to_signal('ActivityAdded', self._activity_added_cb)