|
|
|
@ -269,11 +269,15 @@ class Desktop:
|
|
|
|
|
if process("su",urLogin,"-c",
|
|
|
|
|
("DISPLAY=:%s /usr/bin/qdbus "%display)+logoutCommand).failed():
|
|
|
|
|
raise DesktopError(_("Unable send logout command"))
|
|
|
|
|
time.sleep(1)
|
|
|
|
|
for i in range(0,10):
|
|
|
|
|
if filter(lambda x: "xdm/xdm\x00--logout" in x,
|
|
|
|
|
getRunCommands()):
|
|
|
|
|
break
|
|
|
|
|
time.sleep(0.5)
|
|
|
|
|
if filter(lambda x: "xdm/xdm\x00--logout" in x,
|
|
|
|
|
getRunCommands()):
|
|
|
|
|
self.startTask(_("Waiting for completion of the user logout"))
|
|
|
|
|
for i in range(0,10):
|
|
|
|
|
for i in range(0,300):
|
|
|
|
|
if not filter(lambda x: "xdm/xdm\x00--logout" in x,
|
|
|
|
|
getRunCommands()):
|
|
|
|
|
return True
|
|
|
|
|