diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-10-05 22:01:38 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-10-05 22:01:38 (GMT) |
commit | 79ba6b91b7dff82a546663423dfa684404f55c79 (patch) | |
tree | 0a1c7e60b314cea913da00b96154a3dbf6fe42e3 /shell | |
parent | eeae5d011f696b68a16e9b6a35451cda3308a381 (diff) |
Mount the datastore before starting the journal.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/view/Shell.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/view/Shell.py b/shell/view/Shell.py index 3327972..d68d86c 100644 --- a/shell/view/Shell.py +++ b/shell/view/Shell.py @@ -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') |