[Sugar-devel] installing a font?

Gary Martin garycmartin at googlemail.com
Mon Oct 31 06:00:26 EDT 2011


Hi,

Though in some test/dev/build environments it might be possible, activities must not assume they can write out side of their sandbox. Please see:

	http://wiki.sugarlabs.org/go/Development_Team/Low-level_Activity_API#Security

-------8<--------8<--------8<--------8<--------8<--------8<-------

All writing to the file system is restricted to subdirectories of the path given in the SUGAR_ACTIVITY_ROOT environment variable. This directory has three subdirectories with different policies:

$SUGAR_ACTIVITY_ROOT/data/

This directory is used similar to a traditional home directory, for persistent activity data such as configuration files. Make sure files in there are group readable and writable (see users and groups). The directory itself is group-writable. Files stored here will survive reboots and OS upgrades.

$SUGAR_ACTIVITY_ROOT/tmp/

This directory is used similar to a /tmp directory, being backed by RAM. It may be as small as 1 MB. This directory is deleted when the activity exits (specifically, as soon as all children of the activity's first process die). This directory is only accessible to the activity and its children; not even to Sugar.

$SUGAR_ACTIVITY_ROOT/instance/

This directory is used similar to a /var/tmp directory, being backed by flash rather than by RAM. It is unique per instance. It is used for transfer to and from the datastore (see keeping and resuming). This directory is deleted when the activity exits (specifically, as soon as all children of the activity's first process die)

------->8-------->8-------->8-------->8-------->8 ------->8-------

Regards,
--Gary

On 31 Oct 2011, at 01:59, Sridhar Dhanapalan wrote:

> On 27 October 2011 08:43, Erik Blankinship <erikb at mediamods.com> wrote:
>> Is there a way for an xo bundle to install a font to the system (for cairo
>> to use)?
> 
> Maybe you could include a script that copies the fonts to ~/.fonts ?
> 
> Sridhar
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel



More information about the Sugar-devel mailing list