#8166 HIGH Not Tri: olpc-configure breaks activities which require their bundle directories to be world-writable

Zarro Boogs per Child bugtracker at laptop.org
Tue Aug 26 17:58:30 EDT 2008


#8166: olpc-configure breaks activities which require their bundle directories to
be world-writable
----------------------------+-----------------------------------------------
   Reporter:  erikg         |       Owner:  erikg                  
       Type:  defect        |      Status:  new                    
   Priority:  high          |   Milestone:  Not Triaged            
  Component:  not assigned  |     Version:  not specified          
 Resolution:                |    Keywords:  scratch, olcp-configure
Next_action:  diagnose      |    Verified:  0                      
  Blockedby:                |    Blocking:                         
----------------------------+-----------------------------------------------

Comment(by cscott):

 The stanza in olpc-configure is correct; activity directories should not
 be writable.  In the 9.1 timeframe they will be fuse-mounted zip files,
 and definitely not updatable.

 Scratch is broken; it should be using $SUGAR_ACTIVITY_ROOT/data to store
 persistent data, and/or using the Journal interface.

 Workaround in http://dev.laptop.org/~cscott/Scratch-6.xo is to use a small
 wrapper to launch scratch (Scratch.activity/bin/scratch-wrapper):
 {{{
 #!/bin/sh
 # make sure that /tmp/scratch points to the right persistent data
 directory.
 ln -sf $SUGAR_ACTIVITY_ROOT/data /tmp/scratch
 # if they are not already present, copy the examples there.
 if [ ! -d /tmp/scratch/Games ]; then
   cp -ru $SUGAR_BUNDLE_PATH/Projects.skel/* /tmp/scratch/
 fi
 `dirname $0`/scratch-activity
 }}}

 We then move Scratch.activity/Projects to Scratch.activity/Projects.skel
 and replace Scratch.activity.Projects with a symlink to /tmp/scratch.
 Finally, we replace 'exec = scratch-activity' in
 Scratch.activity/activity/activity.info with 'exec = scratch-wrapper'.

 I bumped the version # to 6 after doing this:
 http://dev.laptop.org/~cscott/Scratch-6.xo

-- 
Ticket URL: <http://dev.laptop.org/ticket/8166#comment:1>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list