[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.

Gonzalo Odiard gonzalo at laptop.org
Mon Dec 10 21:47:42 EST 2012


> 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.

May be we can keep a reference to the tempfile in the model,
avoiding the deletion, and when is not referenced anymore,
will be deleted?

Gonzalo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20121210/2355391a/attachment.html>


More information about the Sugar-devel mailing list