Sugar Learning Environment, Activity Toolkit, GTK 3.
Go to file
2006-05-22 16:12:45 -04:00
examples Add a sample activity. Too bad gmail crashes the 2006-05-18 01:17:40 -04:00
sugar Turn off debug print 2006-05-22 16:12:45 -04:00
autogen.sh Automakeify 2006-04-26 00:18:21 -04:00
configure.ac merge 2006-05-21 21:31:57 -04:00
Makefile.am Refactor the directory structure to match the packages 2006-05-12 02:32:03 -04:00
pylint.sh Merge SVGdraw.py 2006-05-15 14:48:08 -04:00
README Instructions for running a second sugar with Xephyr 2006-05-19 14:27:26 -04:00
setup-run-from-source.sh Refactor the directory structure to match the packages 2006-05-12 02:32:03 -04:00
setup-run-from-source.tcsh Refactor the directory structure to match the packages 2006-05-12 02:32:03 -04:00
spawn-test-env.py Set HOME too 2006-05-22 13:24:53 -04:00

Dependencies
============

xulrunner
gecko-embed

http://gnome.org/~marco/olpc

Building
========

You will need gnome-common.

./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
make install # make require root privileges

Running
=======

Once installed you can run sugar with

 $ sugar

To run the python sources from your source tree run

 $ sugar/sugar

You can also run the components separately:

 $ source ./setup-run-from-source.sh # needs bash

in the top-level directory. Icons and other resources are still loaded
from the installed location though.

To run the shell

 $ cd shell/src
 $ ./shell.py

You can run activities like this

 $ cd browser
 $ ./browser.py

(Just remember to have the shell running)


Running two instances on the same machine
=========================================

1) Install Xephyr
2) Add another user to your machine, lets call that user 'sugar'
2) Run Xepyhr as your normal user:

 $ Xephyr -ac -host-cursor -screen 800x600 :1

3) In a new shell:

 $ su sugar -
 $ dbus-daemon --session --print-address

4) In another new shell 

 $ su sugar -
 $ export DISPLAY=:1
 $ export DBUS_SESSION_BUS_ADDRESS=<output dbus-daemon command from above>
 $ metacity &

5) In the previous shell, run sugar