[Sugar-devel] [sugar-toolkit-gtk3 PATCH] sl#4276: Writing the icon-files for ".xo" files on a permanent mount-point, and not /tmp. mount-point.

Manuel Quiñones manuq at laptop.org
Mon Dec 10 22:30:51 EST 2012


2012/12/10 Gonzalo Odiard <gonzalo at laptop.org>:
>
>> Are you sure about this assumption?  How can you explain that the
>> icons are visible in the palette and in the details view?  I tested
>> with a stick which has a .xo file inside.
>>
>> 1. ls /tmp - no svg files
>>
>> 2. open Journal - I can see this:
>> http://bugs.sugarlabs.org/attachment/ticket/4276/test-wrong-icon.png
>>
>> 3. ls /tpm - now I can see two svg files
>>
>> So seems your assumption is wrong.
>>
>
> The difference is, there are a time race between icon reading,
> and displaying, at times, as the file is a tempfile,
> at the moment of display was already deleted.

Is the code deleting the file?  Otherwise who deletes it?

In /etc/fstab I see the line:

/tmp    /tmp    tmpfs    rw,size=50m    0    0

So unless /tmp is filled by 50 megas of files or the XO is rebooted,
the icon should stay there, no?


More information about the Sugar-devel mailing list