[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 15:37:33 EST 2012


Hi Ajay,

first, thanks for helping on this.

2012/12/10 Ajay Garg <ajay at activitycentral.com>:
> This issue happens, when ".xo" files need to be rendered in the listview in non-journal locations.
> In such cases, these files have no "activity" or "bundle_id" fields in their metadata.
>
> Thus, the current way to know the icon-file-name for such ".xo" files was to expand the zipped files, and write out the icon-files at pseudo-permanent storage,  at /tmp.
>
> However, before the icon-file could be used by the listview to "pick up" the icon bytes, it was  being  garbage-collected.

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.


More information about the Sugar-devel mailing list