[Debian-olpc-devel] Anyone working on packaging sugar-turtleart-activity

Petter Reinholdtsen pere at hungry.com
Mon Mar 30 21:43:58 UTC 2009

[Petter Reinholdtsen]
> How do I run it?  I've made a debian package, but do not remember
> how to start the standalone version.

I found it.  I am using
/usr/share/sugar/activities/TurtleArt.activity/turtleart.py.  Perhaps
it should be installed as /usr/bin/turtleart instead?

I had to apply this patch to get it to run without a LANG variable

--- sugar-turtleart-activity-46.orig/turtleart.py
+++ sugar-turtleart-activity-46/turtleart.py
@@ -57,7 +57,7 @@

     win1 = gtk.Window(gtk.WINDOW_TOPLEVEL)
-    twNew(win1, os.path.abspath('.'),os.environ['LANG'])
+    twNew(win1, os.path.abspath('.'),os.environ.get('LANG', 'C'))
     win1.connect("destroy", lambda w: gtk.main_quit())
     return 0

I suspect there are still problems left, as it seem to read the svg
files from the build directory, and not from the installed files.
Have not investiaged it yet.

Happy hacking,
Petter Reinholdtsen

More information about the Debian-olpc-devel mailing list