Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2008-12-02 13:37:23 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2008-12-02 13:37:23 (GMT)
commit2faf449bdc9410e58e12614da10f52027e2b511f (patch)
treefff3d8f2e1549924595a5fbfc2c42fd8fb2d255c /bin
parent6c399fa32da993912e71981493fb7b0ef9ac4225 (diff)
Dont start the datastore explicitly, will be autolaunched by the journal
Diffstat (limited to 'bin')
-rw-r--r--bin/sugar-session15
1 files changed, 0 insertions, 15 deletions
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()