[Sugar-devel] Launch an Activity from another activity.
Gustavo Duarte
gus.duarte at gmail.com
Wed Mar 4 20:06:25 EST 2015
Hey guys,
I could figure out the solution.
I called sugar-activity instead sugar-launch on the script, like following:
export SUGAR_BUNDLE_PATH=/home/olpc/Activities/Browse.activity
sugar-activity webactivity.WebActivity -u http://mysite.edu.uy -a $activity_id
Thanks any way.
Regards.
On Wed, Mar 4, 2015 at 8:17 PM, Gustavo Duarte <gus.duarte at gmail.com> wrote:
> Hi guys,
>
> I need create an activity bundle which launches Browser activity, on sugar 0.104
>
>
> On previously Sugar versions we can create a bundle which execute an
> script like this:
>
> #!/bin/sh
>
> while [ -n "$2" ] ; do
> case "$1" in
> -b | --bundle-id) bundle_id="$2" ;;
> -a | --activity-id) activity_id="$2" ;;
> -o | --object-id) object_id="$2" ;;
> -u | --uri) uri="$2" ;;
> *) echo unknown argument $1 $2 ;;
> esac
> shift;shift
> done
>
> if [ -z "$bundle_id" -o -z "$activity_id" ] ; then
> echo ERROR: bundle-id and activity-id arguments required
> echo Aborting
> exit 1
> fi
> exec sugar-launch --uri "http://mysite.edu.uy" org.laptop.WebActivity
>
>
> But in 0.104, although it works, two activities are started, the
> second one is the browser, and first one is once which never finished
> to start.
>
> How is the right way to configure activity.info and the script to
> launch another activity ?
>
>
> Thanks in advance.
>
>
> Gustavo.
More information about the Sugar-devel
mailing list