Re: Help runnning a script after Installing an activity from .xo

2008-12-18 Thread shivaprasad javali
I am using a tool to write the application. The sound will be played by this tool itself and it uses OSS. Sorry I cannot provide more information as to what the tool is and what is the application. So I cannot change the way I play sound since this would require me to change the underlying tool. T

Re: Help runnning a script after Installing an activity from .xo

2008-12-17 Thread Wade Brainerd
One more thing- If you are only using OSS to play sound, why not use pygame.mixer instead? It's part of the core Sugar dependencies and offers very low latency playback and the ability to mix channels. Or, are you using some extended functionality of OSS that's not present in pygame.mixer? -Wad

Re: Help runnning a script after Installing an activity from .xo

2008-12-17 Thread Wade Brainerd
2008/12/16 shivaprasad javali > Hi, > > I am developing an activity for the XO. I have the .xo file ready to > install but I still have one problem. After Installing the activity I need > to make the XO run a script. I need to do this because the Application makes > use of the OSS module to rende

Re: Help runnning a script after Installing an activity from .xo

2008-12-17 Thread Bert Freudenberg
On 18.12.2008, at 00:51, qu...@laptop.org wrote: > On Wed, Dec 17, 2008 at 12:31:31PM +0530, shivaprasad javali wrote: >> So I have to modify the /etc/sysconfig/modules/olpc-1.modules file so >> that I ask the XO to load the OSS module when it boots. > > Why when it boots? Why not when the activi

Re: Help runnning a script after Installing an activity from .xo

2008-12-17 Thread quozl
On Wed, Dec 17, 2008 at 12:31:31PM +0530, shivaprasad javali wrote: > So I have to modify the /etc/sysconfig/modules/olpc-1.modules file so > that I ask the XO to load the OSS module when it boots. Why when it boots? Why not when the activity starts? #!/usr/bin/python import os os.system("/bin/s

Help runnning a script after Installing an activity from .xo

2008-12-16 Thread shivaprasad javali
Hi, I am developing an activity for the XO. I have the .xo file ready to install but I still have one problem. After Installing the activity I need to make the XO run a script. I need to do this because the Application makes use of the OSS module to render sound which is not loaded by default on t