diff options
author | James Cameron <quozl@laptop.org> | 2010-07-27 05:42:00 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2010-07-28 16:08:36 (GMT) |
commit | 4441d570ddf5f85b0dc97b3e0e25e7c0facaa265 (patch) | |
tree | 92514c6406bf8594851c81cd63325d3b09b05c17 | |
parent | 9e0172214cf53920372178afb47123147c251297 (diff) |
ignore logging cleanup fail, sugarlabs.org #1720 laptop.org #9623
Reinstates a design feature that was in sugar-session last year that
was removed during rework.
This version of the patch is for backport to 0.84.
-rw-r--r-- | bin/sugar-session | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/sugar-session b/bin/sugar-session index f5d4c6c..6826c7d 100644 --- a/bin/sugar-session +++ b/bin/sugar-session @@ -138,6 +138,12 @@ def set_fonts(): settings.set_property("gtk-font-name", "%s %f" % (face, size)) def main(): + try: + cleanup_logs() + 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. + print 'logs cleanup failed: %s' % e cleanup_logs() logger.start('shell') |