locate rainbow using PATH instead of hardcoding the location (#1436)

This commit is contained in:
Sascha Silbe 2010-01-11 17:01:37 +00:00
parent 1d8b1b98cb
commit 9c77febcf1

View File

@ -251,10 +251,10 @@ class ActivityCreationHandler(gobject.GObject):
use_rainbow = rainbow_found and os.path.exists('/etc/olpc-security') use_rainbow = rainbow_found and os.path.exists('/etc/olpc-security')
if use_rainbow: if use_rainbow:
environment_dir = tempfile.mkdtemp() environment_dir = tempfile.mkdtemp()
command = ['/usr/bin/sudo', '-E', '--', command = ['sudo', '-E', '--',
'/usr/bin/rainbow-run', 'rainbow-run',
'-v', '-v', '-v', '-v',
'-a', '/usr/bin/rainbow-sugarize', '-a', 'rainbow-sugarize',
'-s', '/var/spool/rainbow/2', '-s', '/var/spool/rainbow/2',
'-f', '1', '-f', '1',
'-f', '2', '-f', '2',