<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6002.18591" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Many thanks for advice we'll look into
it.</FONT></DIV>
<DIV><FONT face=Arial size=2>DG</FONT></DIV>
<DIV>
<P style="MARGIN-BOTTOM: 0cm"><FONT face="Arial, sans-serif"><FONT
size=2>---------------- <BR><BR>Dominik Granada<BR>Prezes Zarządu<BR><A
href="http://www.FRKS.pl">www.FRKS.pl</A><BR><BR>Tel.: 22 545 05 11<BR>Fax.: 22
545 05 10<BR></FONT></FONT>----- Wiadomość oryginalna ----- </P></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>Od:</B> <A
title=bernie@sugarlabs.org href="mailto:bernie@sugarlabs.org">Bernie
Innocenti</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Do:</B> <A title=dgranada@frks.pl
href="mailto:dgranada@frks.pl">Dominik Granada</A> </DIV>
<DIV style="FONT: 10pt arial"><B>DW:</B> <A title=dextrose@lists.sugarlabs.org
href="mailto:dextrose@lists.sugarlabs.org">dextrose@lists.sugarlabs.org</A> ;
<A title=sugar-devel@lists.sugarlabs.org
href="mailto:sugar-devel@lists.sugarlabs.org">Sugar Devel</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Wysłano:</B> 15 maja 2012 02:49</DIV>
<DIV style="FONT: 10pt arial"><B>Temat:</B> Re: [Dextrose] activities on SD
card, XO 1.0</DIV>
<DIV><BR></DIV>[cc += sugar-devel]<BR><BR>On Mon, 2012-05-14 at 12:47 +0200,
Dominik Granada wrote:<BR>> <BR>> Our problem is that this feature does
not work with Dex2. SD card is<BR>> not being mounted on startup. Once the
system is on it is enough to<BR>> take it out/in and it starts to work. Yet
for kids at school we would<BR>> need that automatic at start
up.<BR>> <BR>> I would appreciate any hints...<BR><BR>If all you
need the SD for is adding extra activities, there might be an<BR>easier way:
modify Sugar to add an extra lookup path for activities.<BR><BR>The system
directory for activities is hard-coded by configure into the<BR>variable
"activities_path" of src/jarabe/config.py. In the rpm package<BR>of Sugar,
this ends up
in<BR><BR> /usr/lib/python2.7/site-packages/jarabe/config.py<BR><BR>If
you're feeling a little braver, you could change bundleregistry.py
to<BR>support a colon-separated list of paths:<BR><BR>---
a/src/jarabe/model/bundleregistry.py<BR>+++
b/src/jarabe/model/bundleregistry.py<BR>@@ -61,7 +61,7 @@ class
BundleRegistry(gobject.GObject):<BR>
self._gio_monitors =
[]<BR> <BR> user_path =
env.get_user_activities_path()<BR>-
for activity_dir in [user_path,
config.activities_path]:<BR>+ for
activity_dir in [user_path,
config.activities_path.split(':')]:<BR>
self._scan_directory(activity_dir)<BR>
directory =
gio.File(activity_dir)<BR>
monitor = directory.monitor_directory()<BR><BR>Proper support for activities
on removable media would involve finding<BR>the callback where Sugar handles
hotplug events for storage media and,<BR>if the filesystem contains a
directory called Activities, add it<BR>dynamically to
BundleRegistry.<BR><BR>-- <BR>Bernie Innocenti<BR>Sugar Labs Infrastructure
Team<BR><A
href="http://wiki.sugarlabs.org/go/Infrastructure_Team">http://wiki.sugarlabs.org/go/Infrastructure_Team</A><BR><BR><BR></BLOCKQUOTE></BODY></HTML>