diff options
Diffstat (limited to 'sugar/activity/activityfactory.py')
-rw-r--r-- | sugar/activity/activityfactory.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sugar/activity/activityfactory.py b/sugar/activity/activityfactory.py index 6554755..d5936e9 100644 --- a/sugar/activity/activityfactory.py +++ b/sugar/activity/activityfactory.py @@ -158,6 +158,7 @@ class ActivityCreationHandler(gobject.GObject): env['PATH'] = bin_path + ':' + env['PATH'] command = activity.command + command += ' -b %s' % activity.bundle_id if self._handle.activity_id is not None: command += ' -a %s' % self._handle.activity_id if self._handle.object_id is not None: @@ -165,7 +166,8 @@ class ActivityCreationHandler(gobject.GObject): if self._handle.uri is not None: command += ' -u %s' % self._handle.uri - process = subprocess.Popen(command, env=env, shell=True) + process = subprocess.Popen(command, env=env, shell=True, + cwd=activity.path) else: system_bus = dbus.SystemBus() factory = system_bus.get_object(_RAINBOW_SERVICE_NAME, |