Creating a non-python activity
jbsp72 at gmail.com
Wed May 21 09:46:49 EDT 2008
Thanks to all of you .
I finally got the app working thanks to this link
On Wed, May 21, 2008 at 7:02 PM, Bert Freudenberg <bert at freudenbergs.de>
> On 21.05.2008, at 14:02, Paul Fox wrote:
> > bert wrote:
> >> On 21.05.2008, at 07:25, shivaprasad javali wrote:
> >>> Hi,
> >>> I have a C++ activity which i want to use on the olpc. I
> >>> tried to sugarize my activity based on the info i found on the olpc
> >>> wiki http://wiki.laptop.org/go/Sugarizing .
> >>> The code for sugarizing in that page didnt work for me. I
> >>> was only able to launch my process as a separate application to my
> >>> python script so that there were two processes running for my one
> >>> application.
> >>> I could not figure out how to tie my application's window to
> >>> the blank window provided for the python script.
> >> You need to _SUGAR_BUNDLE_ID and _SUGAR_ACTIVITY_ID as properties to
> >> your X window. This is documented here:
> >> http://wiki.laptop.org/go/Low-level_Activity_API
> > the big trick that might help (and that isn't quite spelled out
> > explicitly on that page)
> Well, that page is (and should be) agnostic of implementation. It
> spells out *what* needs to happen, not *how*, which is specific to
> your actual application, choice of language, etc.
> > is to wrap your C/C++ activity in a
> > combination of shell script (which sets up some environment
> > variables, based on the standard sugar args, i.e., --bundle-id,
> > --activity-id, etc) and a pre-load shared library that contrives
> > to get those values into the X properties where they need to go.
> > see http://wiki.laptop.org/go/Sugar_Factory
> Would be nice if someone added that info to the "Sugarizing" wiki page.
> - Bert -
> Devel mailing list
> Devel at lists.laptop.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Devel