Mount the datastore before starting the journal.
This commit is contained in:
parent
eeae5d011f
commit
79ba6b91b7
@ -30,6 +30,7 @@ from sugar import activity
|
|||||||
from sugar.activity import activityfactory
|
from sugar.activity import activityfactory
|
||||||
from sugar.datastore import datastore
|
from sugar.datastore import datastore
|
||||||
from sugar import profile
|
from sugar import profile
|
||||||
|
from sugar import env
|
||||||
|
|
||||||
from view.ActivityHost import ActivityHost
|
from view.ActivityHost import ActivityHost
|
||||||
from view.frame.frame import Frame
|
from view.frame.frame import Frame
|
||||||
@ -67,10 +68,12 @@ class Shell(gobject.GObject):
|
|||||||
gobject.idle_add(self._start_journal_idle)
|
gobject.idle_add(self._start_journal_idle)
|
||||||
|
|
||||||
def _start_journal_idle(self):
|
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
|
# Checking for the bundle existence will also ensure
|
||||||
# that the shell service is started up.
|
# that the shell service is started up.
|
||||||
|
registry = activity.get_registry()
|
||||||
if registry.get_activity('org.laptop.JournalActivity'):
|
if registry.get_activity('org.laptop.JournalActivity'):
|
||||||
self.start_activity('org.laptop.JournalActivity')
|
self.start_activity('org.laptop.JournalActivity')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user