Initialize the console
This commit is contained in:
parent
85ff44db1c
commit
6f9ae0c769
@ -8,7 +8,6 @@ import gtk
|
|||||||
import gobject
|
import gobject
|
||||||
|
|
||||||
from sugar.activity.Activity import Activity
|
from sugar.activity.Activity import Activity
|
||||||
from sugar.LogWriter import LogWriter
|
|
||||||
from sugar.presence import Service
|
from sugar.presence import Service
|
||||||
from sugar.chat.Chat import Chat
|
from sugar.chat.Chat import Chat
|
||||||
from sugar.chat.BuddyChat import BuddyChat
|
from sugar.chat.BuddyChat import BuddyChat
|
||||||
@ -105,9 +104,6 @@ class ChatShell:
|
|||||||
chat.connect_to_shell()
|
chat.connect_to_shell()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
log_writer = LogWriter("Chat")
|
|
||||||
log_writer.start()
|
|
||||||
|
|
||||||
chat_shell = ChatShell.get_instance()
|
chat_shell = ChatShell.get_instance()
|
||||||
chat_shell.start()
|
chat_shell.start()
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@ import pygtk
|
|||||||
pygtk.require('2.0')
|
pygtk.require('2.0')
|
||||||
import gtk, gobject
|
import gtk, gobject
|
||||||
|
|
||||||
|
from sugar.LogWriter import LogWriter
|
||||||
|
|
||||||
SHELL_SERVICE_NAME = "com.redhat.Sugar.Shell"
|
SHELL_SERVICE_NAME = "com.redhat.Sugar.Shell"
|
||||||
SHELL_SERVICE_PATH = "/com/redhat/Sugar/Shell"
|
SHELL_SERVICE_PATH = "/com/redhat/Sugar/Shell"
|
||||||
|
|
||||||
@ -81,7 +83,11 @@ def create(activity_name, service = None, args = None):
|
|||||||
|
|
||||||
def main(activity_name, activity_class):
|
def main(activity_name, activity_class):
|
||||||
"""Starts the activity main loop."""
|
"""Starts the activity main loop."""
|
||||||
|
log_writer = LogWriter(activity_name)
|
||||||
|
log_writer.start()
|
||||||
|
|
||||||
factory = ActivityFactory(activity_name, activity_class)
|
factory = ActivityFactory(activity_name, activity_class)
|
||||||
|
|
||||||
gtk.main()
|
gtk.main()
|
||||||
|
|
||||||
class ActivityDbusService(dbus.service.Object):
|
class ActivityDbusService(dbus.service.Object):
|
||||||
|
Loading…
Reference in New Issue
Block a user