Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin/sugar-session
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@marcopg.org>2008-12-03 12:23:37 (GMT)
committer Marco Pesenti Gritti <marco@marcopg.org>2008-12-03 12:23:37 (GMT)
commitcc7ce538c3e7d126cc8a1051d4f38e58761c7eaf (patch)
tree817521ea4bdd8c4b0c1d72ee5f69bc81d2ff79f8 /bin/sugar-session
parentdeae08b3b1b5976ca7ebd75afec58a0054e9c0d4 (diff)
parent3d9adae43d749273bd8c8dc7da79d0c84234aea7 (diff)
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
Diffstat (limited to 'bin/sugar-session')
-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()