[Dextrose] [PATCH Sugar] Extend sugar-launch with more options

Bernie Innocenti bernie at codewiz.org
Thu Jan 20 14:02:07 EST 2011


On Thu, 2011-01-20 at 08:56 -0300, Martin Abente wrote:
> 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. 

I don't see why not, but adding m_stone on cc so he can comment.

Acked-by: Bernie Innocenti <bernie at codewiz.org>


Michael, Dextrose 2 is due in one month or so, when schools reopen in
Paraguay. This is why there's no chance we could enable Rainbow in time
for this release. We'd still like to get Rainbow to work, eventually,
but we'd need someone (hint hint!) to take ownership of the feature and
fix any regressions it may cause.

> 
> On Wed, Jan 12, 2011 at 2:45 PM, Martin Abente
> <martin.abente.lahaye at gmail.com> wrote:
>         Add activity_id, object_id and uri options.
>         
>         ---
>          bin/sugar-launch |    9 ++++++++-
>          1 files changed, 8 insertions(+), 1 deletions(-)
>         
>         diff --git a/bin/sugar-launch b/bin/sugar-launch
>         index 7297a8e..ddff162 100644
>         --- a/bin/sugar-launch
>         +++ b/bin/sugar-launch
>         @@ -28,6 +28,12 @@ usage = "usage: %prog [options] activity"
>          parser = OptionParser(usage)
>          parser.add_option("-d", "--debug", action="store_true",
>         dest="debug",
>                           help="launch activity inside gdb")
>         +parser.add_option("-a", "--activity_id", action="store",
>         type="string",
>         +                  dest="activity_id", help="specify activity
>         id", default=None)
>         +parser.add_option("-o", "--object_id", action="store",
>         type="string",
>         +                  dest="object_id", help="specify object id",
>         default=None)
>         +parser.add_option("-u", "--uri", action="store",
>         type="string",
>         +                  dest="uri", help="specify uri",
>         default=None)
>          (options, args) = parser.parse_args()
>         
>          if len(args) == 0:
>         @@ -42,7 +48,8 @@ if not path:
>             sys.exit(1)
>         
>          activity = ActivityBundle(path)
>         -cmd_args = activityfactory.get_command(activity)
>         +cmd_args = activityfactory.get_command(activity,
>         options.activity_id,
>         +                                options.object_id,
>         options.uri)
>         
>          def _which(exec_file):
>             if 'PATH' in os.environ:
>         --
>         1.7.3.1
>         
> 
> _______________________________________________
> Dextrose mailing list
> Dextrose at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/dextrose

-- 
   // Bernie Innocenti - http://codewiz.org/
 \X/  Sugar Labs       - http://sugarlabs.org/



More information about the Dextrose mailing list