Make sure the shell service is started up before trying

to open the journal.
This commit is contained in:
Marco Pesenti Gritti 2007-10-01 16:50:17 +02:00
parent f0afda2e30
commit 01de8531d0

View File

@ -67,6 +67,11 @@ class Shell(gobject.GObject):
gobject.idle_add(self._start_journal_idle)
def _start_journal_idle(self):
registry = activity.get_registry()
# Checking for the bundle existence will also ensure
# that the shell service is started up.
if registry.get_activity('org.laptop.JournalActivity'):
self.start_activity('org.laptop.JournalActivity')
def _activity_started_cb(self, home_model, home_activity):