Since rainbow is never going to run in Dextrose2, I think this patch is still useful for dextrose2 while we find a better approach for upstream. <br><br><div class="gmail_quote">On Wed, Jan 12, 2011 at 2:45 PM, Martin Abente <span dir="ltr"><<a href="mailto:martin.abente.lahaye@gmail.com">martin.abente.lahaye@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Add activity_id, object_id and uri options.<br>
<br>
---<br>
bin/sugar-launch | 9 ++++++++-<br>
1 files changed, 8 insertions(+), 1 deletions(-)<br>
<br>
diff --git a/bin/sugar-launch b/bin/sugar-launch<br>
index 7297a8e..ddff162 100644<br>
--- a/bin/sugar-launch<br>
+++ b/bin/sugar-launch<br>
@@ -28,6 +28,12 @@ usage = "usage: %prog [options] activity"<br>
parser = OptionParser(usage)<br>
parser.add_option("-d", "--debug", action="store_true", dest="debug",<br>
help="launch activity inside gdb")<br>
+parser.add_option("-a", "--activity_id", action="store", type="string",<br>
+ dest="activity_id", help="specify activity id", default=None)<br>
+parser.add_option("-o", "--object_id", action="store", type="string",<br>
+ dest="object_id", help="specify object id", default=None)<br>
+parser.add_option("-u", "--uri", action="store", type="string",<br>
+ dest="uri", help="specify uri", default=None)<br>
(options, args) = parser.parse_args()<br>
<br>
if len(args) == 0:<br>
@@ -42,7 +48,8 @@ if not path:<br>
sys.exit(1)<br>
<br>
activity = ActivityBundle(path)<br>
-cmd_args = activityfactory.get_command(activity)<br>
+cmd_args = activityfactory.get_command(activity, options.activity_id,<br>
+ options.object_id, options.uri)<br>
<br>
def _which(exec_file):<br>
if 'PATH' in os.environ:<br>
<font color="#888888">--<br>
1.7.3.1<br>
<br>
</font></blockquote></div><br>