From 9c5755d85a02ae9e22bf1349840d1490757e4eaa Mon Sep 17 00:00:00 2001 From: Michael Stone Date: Wed, 10 Oct 2007 19:23:59 -0400 Subject: [PATCH] Direct Rainbow to capture activity stdio output. --- sugar/activity/activityfactory.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sugar/activity/activityfactory.py b/sugar/activity/activityfactory.py index c1cefb59..ae08adaa 100644 --- a/sugar/activity/activityfactory.py +++ b/sugar/activity/activityfactory.py @@ -191,9 +191,11 @@ class ActivityCreationHandler(gobject.GObject): system_bus = dbus.SystemBus() factory = system_bus.get_object(_RAINBOW_SERVICE_NAME, _RAINBOW_ACTIVITY_FACTORY_PATH) + stdio_paths = {'stdout': '/logs/stdout', 'stderr': '/logs/stderr'} factory.CreateActivity( self._service_name, self._handle.get_dict(), + stdio_paths, timeout=120 * DBUS_PYTHON_TIMEOUT_UNITS_PER_SECOND, reply_handler=self._create_reply_handler, error_handler=self._create_error_handler,