diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-10-23 16:22:59 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-10-23 16:22:59 (GMT) |
commit | 880f1c637dac24d41a74f9e6308ced573d01e117 (patch) | |
tree | 976515cb7570a6f70abc516d92d0154d7a7494d7 /bin/sugar-launch | |
parent | 3b57c5f247c6f19cae7f4eedb602033d789c3a4d (diff) |
Parse arguments rather than forking out a shell
Diffstat (limited to 'bin/sugar-launch')
-rw-r--r-- | bin/sugar-launch | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/sugar-launch b/bin/sugar-launch index e40ebab..501b289 100644 --- a/bin/sugar-launch +++ b/bin/sugar-launch @@ -40,8 +40,7 @@ if len(activities) == 0: print 'Activity not found.' activity = activities[0] -cmd_args = activityfactory.get_command(activity).split(' ') -print cmd_args +cmd_args = activityfactory.get_command(activity) def _get_interpreter(exec_file): if os.path.exists(exec_file): @@ -66,7 +65,5 @@ if options.debug: cmd_args.extend(_get_interpreter(act_args.pop(0))) cmd_args.extend(act_args) -print cmd_args - os.execvpe(cmd_args[0], cmd_args, activityfactory.get_environment(activity)) |