From 5f6f8ff12cf7eae985364a1b25c70ac5faf77798 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Fri, 11 Jan 2008 20:37:23 +0100 Subject: [PATCH] launch xulrunner based activities with a constant uid in a container #5489 --- lib/sugar/activity/activityfactory.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/sugar/activity/activityfactory.py b/lib/sugar/activity/activityfactory.py index c0c1e1f1..1638197f 100644 --- a/lib/sugar/activity/activityfactory.py +++ b/lib/sugar/activity/activityfactory.py @@ -113,6 +113,12 @@ def get_environment(activity): environ['PATH'] = bin_path + ':' + environ['PATH'] #environ['RAINBOW_STRACE_LOG'] = '1' + if activity.bundle_id in [ 'org.laptop.WebActivity', + 'org.laptop.GmailActivity', + 'org.laptop.WikiBrowseActivity' + ]: + environ['RAINBOW_CONSTANT_UID'] = 'yes' + return environ def get_command(activity, activity_id=None, object_id=None, uri=None): @@ -190,10 +196,10 @@ class ActivityCreationHandler(gobject.GObject): if service_name in [ 'org.laptop.JournalActivity', 'org.laptop.Terminal', 'org.laptop.LogViewer', - 'org.laptop.Analyze', - 'org.laptop.WebActivity' ]: - self._use_rainbow = False - + 'org.laptop.Analyze' + ]: + self._use_rainbow = False + bus = dbus.SessionBus() bus_object = bus.get_object(_SHELL_SERVICE, _SHELL_PATH)