Activity bundle Query

Bert Freudenberg bert at freudenbergs.de
Mon Oct 29 05:00:09 EDT 2007


On Oct 29, 2007, at 9:35 , Waqas Toor wrote:

> Hello ,
>
> but i was able to run the application from the terminal using gij  
> command
>
> and it works fine ...
> so is there a way that i could bundle it ????

Of course. The XO bundle format and Sugar were designed to work fine  
independent of your choice of programming language (though Python is  
better supported than others).

For Java that means probably including gij and whatever runtime files  
it needs within your app bundle.

> what does these lines mean
>      The exec key specifies the executable which Sugar runs to start
> the activity instances.

It means you need to put a line like

exec=run.sh

into your activity.info file.

> Environment variables given on the exec line
> are expanded. Executable files should be placed into the bin/
> directory in the bundle.

Put the script into YourActivity.activity/bin/run.sh

> It should support the following arguments:
>
> -b, --bundle-id
>     Identifier of the activity bundle
> -a, --activity-id
>     Identifier of the activity instance.
> -o, --object-id
>     Identifier of the associated datastore object.
> -u, --uri
>     URI to load.
>
> are they helpfull ?

Handle these command line options in your script as outlined in

http://wiki.laptop.org/go/Low-level_Activity_API

which describes non-Python activities.

- Bert -

>
> On 10/29/07, John Watlington <wad at laptop.org> wrote:
>>
>> You will have to port your application.
>> The XO doesn't support Java at this time.
>>
>> May I suggest Python ?
>>
>> Regards,
>> John
>>
>> On Oct 29, 2007, at 3:37 AM, Waqas Toor wrote:
>>
>>> Hello
>>>
>>> I am making an activity of my application ...aaplication is written
>>> in java..
>>> and i have a bash script to load that application
>>>
>>> now what would be the line in myActivity.info file that will execute
>>> that run.sh script
>>>
>>> i am unable to figure it out from the wiki pages
>>>
>>> Regards
>>>
>>> --
>>> Waqas Toor
>>> member of Ubuntu Pakistani Team
>>> waqas at ubuntu-pk.org
>>> http://www.ubuntu-pk.org
>>>
>>> Linux *is* user friendly. It's just selective about who its friends
>>> are.
>>> In a world without walls and fences, who needs windows and Gates ?
>>>
>>> http://waqastoor.weblog.pk
>>> (Registered Linux user #424056)
>>> ref link http://counter.li.org/
>>> _______________________________________________
>>> Devel mailing list
>>> Devel at lists.laptop.org
>>> http://lists.laptop.org/listinfo/devel
>>
>>
>
>
> -- 
> Waqas Toor
> member of Ubuntu Pakistani Team
> waqas at ubuntu-pk.org
> http://www.ubuntu-pk.org
>
> Linux *is* user friendly. It's just selective about who its friends  
> are.
> In a world without walls and fences, who needs windows and Gates ?
>
> http://waqastoor.weblog.pk
> (Registered Linux user #424056)
> ref link http://counter.li.org/
> _______________________________________________
> Devel mailing list
> Devel at lists.laptop.org
> http://lists.laptop.org/listinfo/devel





More information about the Devel mailing list