[Sugar-devel] Documents and Journal paths on sugar-build

Sebastian Silva sebastian at fuentelibre.org
Sun May 22 09:46:28 EDT 2016


Hi Utkarsh,

Perhaps this is an area for improvement in Sugar. The journal datastore
was designed to be more than it is now (see the git backend discussion).

I always found very silly how Sugar tries very hard to hide files (even
from the command line) when, in fact, it stores journal objects as files.

It should be relatively simple to modify the Journal to save its objects
as regular files, and store the metadata in "filesystem extended
attributes"  (please look that up). I believe this would relieve a lot
of confusion (in the ground) around the journal (like you are having).
Perhaps Tony and the community can be convinced this is a good idea to
implement.

Please read in detail the Sugar Human Interface Guidelines, which
describe the Sugar design in detail. Also read James Simmons
Make-Your-Own-Sugar-Activities which describes a good attempt to make
sense of the implementation from a Sugar Activity developer perspective.

With regards to the Documents directory, /use the source, /look up in
the journal code exactly how it decides. A good, standards compliant
implementation would use the result of the `xdg-user-dir DOCUMENTS`
command. Are you using system Sugar packages or sugar-build? sugar-build
probably overrides this.

Regards,
Sebastian

El 22/05/16 a las 05:55, Tony Anderson escribió:
> Hi, Utkarsh
>
> I may not be able to help. I am testing on an XO. However, the object
> is not to use direct paths which may vary between SOAS and Sugar on an
> XO.
>
> Documents should be ~/Documents.
> Journal objects are stored in ~/.sugar/default/datastore. However, if
> you only reference the datastore with the datastore class -that
> shouldn't be important.
>
> So you can write them with datastore to the Journal. For Documents, I
> use ~/Documents but there is a way to change the 'mount' in the
> datastore to use the
> Documents folder (or to use a USB key).
>
> Tony
>
> On 05/22/2016 12:27 PM, Ütkarsh Tiwari wrote:
>> Hi,
>>      I am unable to find the location where the sugar-build stores the
>> Documents and Journal objects. I would also like to know how to copy
>> the external files (.html, .txt, .png, .zip files - outside
>> sugar-build) to Journal or Documents.
>>
>> P.S- I am on Ubuntu 15.04
>>
>> Thanks,
>> Utkarsh Tiwari
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20160522/b12d1fd9/attachment-0001.html>


More information about the Sugar-devel mailing list