Do not start guid if DISPLAY is not set

Fixes QubesOS/qubes-issues#2408
This commit is contained in:
Marek Marczykowski-Górecki 2016-10-30 01:31:53 +02:00
parent 3b680ebc94
commit 800fcfd880
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -2017,6 +2017,11 @@ class QubesVm(object):
# preparing DispVM, where it isn't needed because of "invisible"
# mode
start_guid = False
if start_guid and 'DISPLAY' not in os.environ:
if verbose:
print >> sys.stderr, \
"WARNING: not starting GUI, because DISPLAY not set"
start_guid = False
if start_guid:
self.start_guid(verbose=verbose, notify_function=notify_function,