diff options
author | Dan Williams <dcbw@localhost.localdomain> | 2006-08-17 03:02:06 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@localhost.localdomain> | 2006-08-17 03:02:06 (GMT) |
commit | 653065363639ebb59bcbbd682c6a0249dd475f11 (patch) | |
tree | 797de71ec6daa61eccd032939f7dedeb5ca511b2 | |
parent | 9ad1fe62aeb5b360a2c6f7e81149b5b0669ce67a (diff) |
Wait for PS to start again to fix race issues with activation
-rw-r--r-- | shell/session/Session.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/session/Session.py b/shell/session/Session.py index 752e6ee..92f10b6 100644 --- a/shell/session/Session.py +++ b/shell/session/Session.py @@ -54,6 +54,12 @@ class Session: process.start() PresenceService.start() + bus = dbus.Bus() + ret = False + # Wait for the presence service to start up before continuing + while not ret: + ret = dbus.dbus_bindings.bus_name_has_owner(bus._connection, PresenceService.DBUS_SERVICE) + time.sleep(0.2) process = MatchboxProcess() process.start() |