Ticket #1436: 0001-locate-rainbow-using-PATH-instead-of-hardcoding-the-.patch

File 0001-locate-rainbow-using-PATH-instead-of-hardcoding-the-.patch, 1.2 KB (added by sascha_silbe, 15 years ago)

locate rainbow using PATH instead of hardcoding the location

  • src/sugar/activity/activityfactory.py

    From 3476a0b467d856e471b6cb48d992807d2d9fc30c Mon Sep 17 00:00:00 2001
    From: Sascha Silbe <sascha@silbe.org>
    Date: Sun, 27 Sep 2009 19:18:47 +0200
    Subject: [PATCH] locate rainbow using PATH instead of hardcoding the location
    
    ---
     src/sugar/activity/activityfactory.py |    6 +++---
     1 files changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/src/sugar/activity/activityfactory.py b/src/sugar/activity/activityfactory.py
    index 4e3ca49..089a1ce 100644
    a b class ActivityCreationHandler(gobject.GObject): 
    251251            os.path.exists('/etc/olpc-security')
    252252        if rainbow_enabled:
    253253            environment_dir = tempfile.mkdtemp()
    254             command = ['/usr/bin/sudo', '-E', '--',
    255                        '/usr/bin/rainbow-run',
     254            command = ['sudo', '-E', '--',
     255                       'rainbow-run',
    256256                       '-v', '-v',
    257                        '-a', '/usr/bin/rainbow-sugarize',
     257                       '-a', 'rainbow-sugarize',
    258258                       '-s', '/var/spool/rainbow/2',
    259259                       '-f', '1',
    260260                       '-f', '2',