[Sugar-devel] [sugar PATCH] sl#4276: As part of sugar-toolkit patch for this bug-fix, remove the icon-files directory on every reboot, to prevent accumulation of any spurious files. New files will be (re-)written by write-through mechanism.

Ajay Garg ajay at activitycentral.com
Tue Dec 11 01:50:46 EST 2012

diff --git a/bin/sugar-session b/bin/sugar-session
index 3c86f3e..a7e065b 100755
--- a/bin/sugar-session
+++ b/bin/sugar-session
@@ -278,6 +278,13 @@ def main():
         shutil.rmtree(data_dir, ignore_errors=True)
+	# http://bugs.sugarlabs.org/ticket/4276
+	# Remove the directory containing the icon-files.
+	# New files will be written by "write-through" mechanism, when first
+	# needed/accessed.
+	icon_files_dir = os.path.join(env.get_profile_path(), 'icon_files')
+        shutil.rmtree(icon_files_dir, ignore_errors=True)
     except OSError, e:
         # logs cleanup is not critical; it should not prevent sugar from
         # starting if (for example) the disk is full or read-only.

More information about the Sugar-devel mailing list