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

Ajay Garg ajay at activitycentral.com
Mon Dec 10 15:17:36 EST 2012


Manuel, James ::

In my current approach, a file in "icon_files" folder is not removed ever,
once it is written.



This solves the following two purposes ::

a)
Space optimization ::
===============

No need to write multiple files for the same activity icon.
Earlier, many icon-files (containing the same contents) existed, owing to
different random names of each new file in "/tmp" folder.


b)
Time  optimization ::
===============

Once it is seen that an  activity-icon file (pertaining to a particular
activity) exists, it is not re-written.



For eg, at my end, "ls -l /home/ajay/.sugar/default/icon_files" gives ::

[ajay at localhost ~]$ ls -l ~/.sugar/default/icon_files/
total 56
-rw-rw-r--. 1 ajay ajay  1220 Dec 10 23:47 activity-imageviewer.svg
-rw-rw-r--. 1 ajay ajay  1685 Dec 10 23:47 activity-maze.svg
-rw-rw-r--. 1 ajay ajay  1666 Dec 10 23:47 activity-memorize.svg
-rw-rw-r--. 1 ajay ajay   714 Dec 10 23:47 activity-ruler.svg
-rw-rw-r--. 1 ajay ajay  3677 Dec 10 23:47 activity-scratch.svg
-rw-rw-r--. 1 ajay ajay   836 Dec 10 23:47 activity-terminal.svg
-rw-rw-r--. 1 ajay ajay 21378 Dec 10 23:47 gcompris.svg
-rw-rw-r--. 1 ajay ajay  4110 Dec 10 23:47 icono2.svg


I am open to any new approaches; we have done the important part of
diagnosing :D



On Tue, Dec 11, 2012 at 1:40 AM, James Cameron <quozl at laptop.org> wrote:

> How are the .svg files in /icon_files removed?
>
> --
> James Cameron
> http://quozl.linux.org.au/
>



Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20121211/157938be/attachment.html>


More information about the Sugar-devel mailing list