2006-07-12 22:17:57 +02:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
import sys
|
2006-07-27 10:35:59 +02:00
|
|
|
import logging
|
2006-07-12 22:17:57 +02:00
|
|
|
|
2006-07-20 16:49:11 +02:00
|
|
|
import pygtk
|
|
|
|
pygtk.require('2.0')
|
2006-07-12 22:17:57 +02:00
|
|
|
import gobject
|
2006-08-09 02:02:34 +02:00
|
|
|
import gtk
|
2006-08-09 02:13:56 +02:00
|
|
|
import dbus.glib
|
|
|
|
|
|
|
|
# Work around for dbus mutex locking issue
|
|
|
|
gtk.gdk.threads_init()
|
|
|
|
dbus.glib.threads_init()
|
2006-07-12 22:17:57 +02:00
|
|
|
|
2006-08-09 02:02:34 +02:00
|
|
|
from sugar.activity import ActivityFactory
|
2006-07-12 22:17:57 +02:00
|
|
|
from sugar.LogWriter import LogWriter
|
|
|
|
from sugar import theme
|
|
|
|
|
2006-07-27 10:35:59 +02:00
|
|
|
logging.info('Starting activity factory %s' % sys.argv[1])
|
|
|
|
|
2006-07-12 22:17:57 +02:00
|
|
|
theme.setup()
|
|
|
|
|
2006-07-28 01:25:08 +02:00
|
|
|
#lw = LogWriter(sys.argv[1])
|
|
|
|
#lw.start()
|
2006-07-12 22:17:57 +02:00
|
|
|
|
2006-08-09 13:01:47 +02:00
|
|
|
ActivityFactory.register_factory(sys.argv[1], sys.argv[2])
|
2006-08-09 02:02:34 +02:00
|
|
|
|
|
|
|
gtk.main()
|