2006-05-16 22:32:08 +02:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
import pygtk
|
|
|
|
pygtk.require('2.0')
|
|
|
|
import gtk
|
|
|
|
|
|
|
|
from sugar.shell import shell
|
|
|
|
|
2006-05-17 06:12:01 +02:00
|
|
|
def start(console):
|
2006-05-16 22:32:08 +02:00
|
|
|
shell.main()
|
2006-05-17 06:23:00 +02:00
|
|
|
|
2006-05-16 22:32:08 +02:00
|
|
|
activities = ['sugar/chat/chat', 'sugar/browser/browser']
|
|
|
|
|
|
|
|
for activity in activities:
|
2006-05-17 06:12:01 +02:00
|
|
|
args = [ 'python', '-m', activity ]
|
|
|
|
if console:
|
|
|
|
args.append('--console')
|
|
|
|
os.spawnvp(os.P_NOWAIT, 'python', args)
|
2006-05-16 22:32:08 +02:00
|
|
|
|
|
|
|
gtk.main()
|