[Bugs] #1748 UNSP: Can't open library bundles (.xol) from USB stick

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Fri Sep 3 21:49:05 EDT 2010


#1748: Can't open library bundles (.xol) from USB stick
------------------------------------------+---------------------------------
    Reporter:  ruben                      |          Owner:  sayamindu                  
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  sugar                      |        Version:  0.84.x                     
    Severity:  Unspecified                |       Keywords:                             
Distribution:  OLPC                       |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------

Comment(by skierpage):

 This also happens in OLPC build os852 (10.1.2 that incorporates Sugar
 0.84.16) on an XO-1.

 Indeed, resume() in journal misc.py does not pass a path to install() in
 sugar/bundle/contentbundle.py
 The latter has the comment "# TODO ignore passed install_path argument"
 and it looks as if it does ignore it.  I tried removing the parameter
 altogether:
   def install(self):
 and I could install .xol from the journal, but that's an API change that
 might affect callers.  Another fix might be to give it a default value.
   def install(self, install_path=None):
 this is similar to sugar/bundle/activitybundle.py's install().

 The next glitch after fixing this is that the content bundle does not
 appear in the Journal, so there's no way to remove it from ~/Library and
 the expandable library navigation on the OLPC's home page.

 Another workaround that addresses both problems is to install the bundle
 from Browse using a local file:/// URL, as if you're downloading from an
 http address.
 * Insert the USB flash drive
 * Visit Journal to get the OS to mount it
 * Start Browse, navigate to file:///media , click on the USB flash drive's
 volume name.
 * Navigate to the .xol file and click it.
 Just as when browsing a content site, you get a download dialog.  If you
 later erase the .xol from the Journal this will remove it from ~/Library
 and the OLPC home page.

 There are other bugs with .xol content: bug #470 (no .xol icon), bug #1354
 (no metadata), etc. It might be easier to rethink .xol content bundles
 and/or unify content and activities than fix them.  ;-)

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/1748#comment:1>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list