launch xulrunner based activities with a constant uid in a container #5489

This commit is contained in:
Simon Schampijer 2008-01-11 20:37:23 +01:00
parent b59a81b885
commit 5f6f8ff12c

View File

@ -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,8 +196,8 @@ class ActivityCreationHandler(gobject.GObject):
if service_name in [ 'org.laptop.JournalActivity',
'org.laptop.Terminal',
'org.laptop.LogViewer',
'org.laptop.Analyze',
'org.laptop.WebActivity' ]:
'org.laptop.Analyze'
]:
self._use_rainbow = False
bus = dbus.SessionBus()