dom0: check if X server is available before starting guid (#377)

This commit is contained in:
Marek Marczykowski 2011-12-05 13:42:07 +01:00
parent 99ffed089c
commit f03152053b

View File

@ -1145,7 +1145,8 @@ class QubesVm(object):
self.force_shutdown()
raise OSError ("ERROR: Cannot execute qrexec_daemon!")
self.start_guid(verbose=verbose)
if subprocess.call('xprop -root >/dev/null 2>&1', shell=True) == 0:
self.start_guid(verbose=verbose)
if preparing_dvm:
if verbose: