Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-10-01 14:50:17 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-10-01 14:50:17 (GMT)
commit01de8531d06e51a9c540e557faf7dfccbf46e59d (patch)
tree8b360324f229205fbdba9ca022061e2c4c0106fb
parentf0afda2e306ee50e5a486a9e804fefa43e84c8e3 (diff)
Make sure the shell service is started up before trying
to open the journal.
-rw-r--r--shell/view/Shell.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/shell/view/Shell.py b/shell/view/Shell.py
index 9d14a2f..3327972 100644
--- a/shell/view/Shell.py
+++ b/shell/view/Shell.py
@@ -67,7 +67,12 @@ class Shell(gobject.GObject):
gobject.idle_add(self._start_journal_idle)
def _start_journal_idle(self):
- self.start_activity('org.laptop.JournalActivity')
+ 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):
activity_host = ActivityHost(home_activity)