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:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-10-08 12:56:12 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-10-08 12:56:12 (GMT)
commit6ebe910e93792c046912acb962496f20f323d93f (patch)
tree87527c39edd0304ab1bf905dbb7cc5886c7bd03a /sugar/activity/registry.py
parent6a4f83d37c0152319deedc7ed50a352f2f15e05c (diff)
In preparation of enabling rainbow by default, remove
the factory service from the public API. The Exec field will now launch an activity instance. Add a -s argument to sugar-activity to enable the single process mode for activities that really need it.
Diffstat (limited to 'sugar/activity/registry.py')
-rw-r--r--sugar/activity/registry.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/sugar/activity/registry.py b/sugar/activity/registry.py
index 8b1d440..b873821 100644
--- a/sugar/activity/registry.py
+++ b/sugar/activity/registry.py
@@ -30,14 +30,16 @@ def _activity_info_from_dict(info_dict):
return None
return ActivityInfo(info_dict['name'], info_dict['icon'],
info_dict['service_name'], info_dict['path'],
- info_dict['show_launcher'])
+ info_dict['show_launcher'], info_dict['command'])
class ActivityInfo(object):
- def __init__(self, name, icon, service_name, path, show_launcher):
+ def __init__(self, name, icon, service_name,
+ path, show_launcher, command):
self.name = name
self.icon = icon
self.service_name = service_name
self.path = path
+ self.command = command
self.show_launcher = show_launcher
class ActivityRegistry(gobject.GObject):