[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



[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
set:

--- sugar-turtleart-activity-46.orig/turtleart.py
+++ sugar-turtleart-activity-46/turtleart.py
@@ -57,7 +57,7 @@
                     os.path.join(tapath,'instance/')))

     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())
     gtk.main()
     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


Reply to: