[sugar] Problem with Activity Development

Bobby Powers bobbypowers at gmail.com
Tue Jul 8 15:32:58 EDT 2008


How about this:

for activity.info have it exec a shell script:
~~~
[Activity]
name = YourSweetApp
bundle_id = org.laptop.Sweet
service_name = org.laptop.Sweet
exec = ./sweet_startup.sh   ***
icon = sweet-icon
activity_version = 7
mime_types = text/plain
show_launcher = yes  ***
~~~
don't print the ***, they are to note the relevant lines!  Also you
need to remove the 'class...' line.


Then, in the root folder of your app put a shell script (with the
right permissions to let it execute) with the following:
~~~
#!/bin/sh

cd src
sugar-activity EducationalToolkitActivity.STARTUPCLASS -s $@

~~~

I don't know if this will work, but its worth a shot.

Bobby

On Mon, Jul 7, 2008 at 11:47 PM, Asheesh Laroia <asheesh at asheesh.org> wrote:
> On Mon, 7 Jul 2008, Ankuj Gupta wrote:
>
>> Hi
>>
>> Due to the git repository structure I have to keep a different directory
>> structure than the default directory as recommended by the wiki.The
>> contents of the manifest file are mentioned here
>
> Okay.
>
>> EducationalToolkitActivity.py imports parse and model .py But tle log
>> shows module missing.I have also edited the activity-info file.But
>> still it shows "No module named as parse"
>
> Can you:
>
> (a) provide the full source?, and
> (b) provide the exact error message?
>
> -- Asheesh.
>
> --
> The easiest way to get the root password is to become system admin.
>                -- Unknown source
> _______________________________________________
> Sugar mailing list
> Sugar at lists.laptop.org
> http://lists.laptop.org/listinfo/sugar
>


More information about the Sugar mailing list