Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/activity/bundleregistry.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-02-22 14:46:13 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-02-22 14:46:13 (GMT)
commit02f375b7108037b6a1dc2f002f03091aa4853b8a (patch)
tree83cf7d6a4574ed4f286cb262c8d0ef1bdcc522be /sugar/activity/bundleregistry.py
parent3742219d6c999a683fa716e59ad4803cad03c992 (diff)
Add a class attribute as per the updated spec.
Cleanups.
Diffstat (limited to 'sugar/activity/bundleregistry.py')
-rw-r--r--sugar/activity/bundleregistry.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/sugar/activity/bundleregistry.py b/sugar/activity/bundleregistry.py
index ccf3b79..08f543f 100644
--- a/sugar/activity/bundleregistry.py
+++ b/sugar/activity/bundleregistry.py
@@ -11,13 +11,8 @@ class _ServiceManager(object):
self._path = env.get_user_service_dir()
def add(self, bundle):
- name = bundle.get_service_name()
-
- # FIXME evil hack. Probably need to fix Exec spec
- full_exec = env.get_shell_bin_dir() + '/' + bundle.get_exec()
- full_exec += ' ' + bundle.get_path()
-
- util.write_service(name, full_exec, self._path)
+ util.write_service(bundle.get_service_name(),
+ bundle.get_exec(), self._path)
class BundleRegistry(gobject.GObject):
"""Service that tracks the available activity bundles"""