Mount the datastore before starting the journal.

This commit is contained in:
Tomeu Vizoso 2007-10-06 00:01:38 +02:00
parent eeae5d011f
commit 79ba6b91b7

View File

@ -30,6 +30,7 @@ from sugar import activity
from sugar.activity import activityfactory
from sugar.datastore import datastore
from sugar import profile
from sugar import env
from view.ActivityHost import ActivityHost
from view.frame.frame import Frame
@ -67,10 +68,12 @@ class Shell(gobject.GObject):
gobject.idle_add(self._start_journal_idle)
def _start_journal_idle(self):
registry = activity.get_registry()
# Mount the datastore in internal flash
datastore.mount(env.get_profile_path('datastore'), [])
# Checking for the bundle existence will also ensure
# that the shell service is started up.
registry = activity.get_registry()
if registry.get_activity('org.laptop.JournalActivity'):
self.start_activity('org.laptop.JournalActivity')