diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2006-04-26 06:25:58 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2006-04-26 06:25:58 (GMT) |
commit | 200c3d077ada98d51eb416a46c3c70e5ee8cc950 (patch) | |
tree | 57a9ae163e2f7fc96aeae1bb945c54bbf5fc62dd /sugar | |
parent | 070088a6a57caf40cd213f14c6e5eaec3479520b (diff) |
Install service files so that services are automatically
Diffstat (limited to 'sugar')
-rwxr-xr-x | sugar | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -1,9 +1,21 @@ #!/usr/bin/python import sys +import os -# FIXME Without args we should startup the session thing -if len(sys.argv) == 1 or sys.argv[1] == 'shell': +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. + + import sugar.chat + sugar.chat.main() +elif sys.argv[1] == 'shell': import sugar.shell sugar.shell.main() elif sys.argv[1] == 'chat': |