[Sugar-devel] [PATCH 1/2] This fixes part of http://bugs.sugarlabs.org/ticket/1876 .
Bernie Innocenti
bernie at codewiz.org
Tue May 4 19:25:12 EDT 2010
To reclaim space in case of a crash, we also need to delete temporary
files at startup time. The rest of the bug is addressed by a separate
patch in sugar-toolkit.
Signed-off-by: Bernie Innocenti <bernie at codewiz.org>
---
bin/sugar.in | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/bin/sugar.in b/bin/sugar.in
index b9f467c..4a5e523 100644
--- a/bin/sugar.in
+++ b/bin/sugar.in
@@ -19,4 +19,7 @@ fi
matchbox-window-manager -use_titlebar no -theme sugar \
-kbdconfig @prefix@/share/sugar/data/kbdconfig &
+# Remove temporary files. See http://bugs.sugarlabs.org/ticket/1876
+rm -rf $HOME/.sugar/default/data/*
+
exec sugar-session
--
1.7.0.1
More information about the Sugar-devel
mailing list