Activity bundle Query
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
> 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
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
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 ?
>> On Oct 29, 2007, at 3:37 AM, Waqas Toor wrote:
>>> 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
>>> Waqas Toor
>>> member of Ubuntu Pakistani Team
>>> waqas at ubuntu-pk.org
>>> Linux *is* user friendly. It's just selective about who its friends
>>> In a world without walls and fences, who needs windows and Gates ?
>>> (Registered Linux user #424056)
>>> ref link http://counter.li.org/
>>> Devel mailing list
>>> Devel at lists.laptop.org
> Waqas Toor
> member of Ubuntu Pakistani Team
> waqas at ubuntu-pk.org
> Linux *is* user friendly. It's just selective about who its friends
> In a world without walls and fences, who needs windows and Gates ?
> (Registered Linux user #424056)
> ref link http://counter.li.org/
> Devel mailing list
> Devel at lists.laptop.org
More information about the Devel