Make sure the shell service is started up before trying
to open the journal.
This commit is contained in:
parent
f0afda2e30
commit
01de8531d0
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user