sugar-toolkit-gtk3/shell/sugar-activity-factory
Marco Pesenti Gritti 4f2b8b3e31 No need to initialize gtk threads, glib is enough.
Fix lockups in the browser.
2006-09-29 00:23:24 +02:00

25 lines
443 B
Python
Executable File

#!/usr/bin/python
import sys
import logging
import pygtk
pygtk.require('2.0')
import gobject
import gtk
import dbus.glib
# Work around for dbus mutex locking issue
gobject.threads_init()
dbus.glib.threads_init()
from sugar.activity import ActivityFactory
import sugar.logger
sugar.logger.start(sys.argv[1])
logging.info('Starting activity factory %s' % sys.argv[1])
ActivityFactory.register_factory(sys.argv[1], sys.argv[2])
gtk.main()