From 2faf449bdc9410e58e12614da10f52027e2b511f Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Tue, 02 Dec 2008 13:37:23 +0000 Subject: Dont start the datastore explicitly, will be autolaunched by the journal --- (limited to 'bin') diff --git a/bin/sugar-session b/bin/sugar-session index 12e1f9e..7118c21 100644 --- a/bin/sugar-session +++ b/bin/sugar-session @@ -77,20 +77,6 @@ def cleanup_logs(): dest_path = os.path.join(backup_dir, log) os.rename(source_path, dest_path) -def start_datastore(): - from sugar.datastore import datastore - - # Mount the datastore in internal flash - ds_path = env.get_profile_path('datastore') - try: - datastore.mount(ds_path, [], timeout=120) - except Exception, e: - # Don't explode if there's corruption; move the data out of the way - # and attempt to create a store from scratch. - logging.error(e) - shutil.move(ds_path, os.path.abspath(ds_path) + str(time.time())) - datastore.mount(ds_path, [], timeout=120) - def start_ui_service(): from jarabe.view.service import UIService @@ -146,7 +132,6 @@ def main(): if timezone is not '': os.environ['TZ'] = timezone - start_datastore() start_ui_service() start_session_manager() -- cgit v0.9.1