Wait for PS to start again to fix race issues with activation
This commit is contained in:
parent
9ad1fe62ae
commit
6530653636
@ -54,6 +54,12 @@ class Session:
|
|||||||
process.start()
|
process.start()
|
||||||
|
|
||||||
PresenceService.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 = MatchboxProcess()
|
||||||
process.start()
|
process.start()
|
||||||
|
Loading…
Reference in New Issue
Block a user