sugar-toolkit-gtk3/shell/sugar-activity-factory
Marco Pesenti Gritti 86bd6f50f0 Use dbus activation to launch factories. This breaks
p-to-p chat and ./sugar/activities. Will fix tomorrow.
2006-07-28 01:25:08 +02:00

25 lines
460 B
Python
Executable File

#!/usr/bin/python
import sys
import logging
import pygtk
pygtk.require('2.0')
import gobject
from sugar.activity import Activity
from sugar.LogWriter import LogWriter
from sugar import theme
logging.info('Starting activity factory %s' % sys.argv[1])
theme.setup()
#lw = LogWriter(sys.argv[1])
#lw.start()
if len(sys.argv) == 4:
Activity.register_factory(sys.argv[1], sys.argv[2], sys.argv[3])
else:
Activity.register_factory(sys.argv[1], sys.argv[2])