|
|
@ -223,12 +223,9 @@ class ActivityCreationHandler(GObject.GObject):
|
|
|
|
self._handle.object_id, self._handle.uri,
|
|
|
|
self._handle.object_id, self._handle.uri,
|
|
|
|
self._handle.invited)
|
|
|
|
self._handle.invited)
|
|
|
|
|
|
|
|
|
|
|
|
dev_null = file('/dev/null', 'w')
|
|
|
|
|
|
|
|
environment_dir = None
|
|
|
|
environment_dir = None
|
|
|
|
rainbow_found = subprocess.call(['which', 'rainbow-run'],
|
|
|
|
if os.path.exists('/etc/olpc-security') \
|
|
|
|
stdout=dev_null, stderr=dev_null) == 0
|
|
|
|
and os.access('/usr/bin/rainbow-run', os.X_OK):
|
|
|
|
use_rainbow = rainbow_found and os.path.exists('/etc/olpc-security')
|
|
|
|
|
|
|
|
if use_rainbow:
|
|
|
|
|
|
|
|
environment_dir = tempfile.mkdtemp()
|
|
|
|
environment_dir = tempfile.mkdtemp()
|
|
|
|
command = ['sudo', '-E', '--',
|
|
|
|
command = ['sudo', '-E', '--',
|
|
|
|
'rainbow-run',
|
|
|
|
'rainbow-run',
|
|
|
|