sugar-toolkit-gtk3/sugar/sugar

29 lines
569 B
Plaintext
Raw Normal View History

#!/usr/bin/python
import sys
import os
if len(sys.argv) == 1:
# FIXME Start a session
# We are lucky and this
# currently behave as we want.
# The chat depends on the
# web browser, so both activities
# are spanned. But obviously we
# need something better.
from sugar.chat import chat
chat.main()
elif sys.argv[1] == 'shell':
from sugar.shell import shell
shell.main()
elif sys.argv[1] == 'chat':
from sugar.chat import chat
chat.main()
elif sys.argv[1] == 'browser':
from sugar.browser import browser
browser.main()
else:
print "Unknown activity"