diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-07-27 23:25:08 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-07-27 23:25:08 (GMT) |
commit | 86bd6f50f0ad5eaaf2110e245c979687eb041d22 (patch) | |
tree | 8517b74e5451ee070776576713b15273797cf335 /shell/Session.py | |
parent | 1d370ca8e5b8f4f4b863adb7bb9ea39fe885d284 (diff) |
Use dbus activation to launch factories. This breaks
p-to-p chat and ./sugar/activities. Will fix tomorrow.
Diffstat (limited to 'shell/Session.py')
-rw-r--r-- | shell/Session.py | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/shell/Session.py b/shell/Session.py index efb2c22..c33e5c9 100644 --- a/shell/Session.py +++ b/shell/Session.py @@ -11,17 +11,12 @@ from Process import Process import sugar.theme import sugar.env -class ActivityProcess(Process): - def __init__(self, module): - Process.__init__(self, module.get_exec()) - self._module = module - - def get_name(self): - return self._module.get_name() - class DbusProcess(Process): def __init__(self): - Process.__init__(self, "dbus-daemon --session --print-address") + config = sugar.env.get_dbus_config() + cmd = "dbus-daemon --print-address --config-file %s" % config + print cmd + Process.__init__(self, cmd) def get_name(self): return 'Dbus' @@ -66,9 +61,9 @@ class PresenceServiceProcess(Process): class Session: """Takes care of running the shell and all the sugar processes""" - - def __init__(self): + def __init__(self, registry): sugar.theme.setup() + self._registry = registry def start(self): """Start the session""" @@ -81,14 +76,9 @@ class Session: process = PresenceServiceProcess() process.start() - shell = Shell() + shell = Shell(self._registry) shell.start() - registry = shell.get_registry() - for activity_module in registry.list_activities(): - process = ActivityProcess(activity_module) - process.start() - try: gtk.main() except KeyboardInterrupt: |