Do not start guid if DISPLAY is not set
Fixes QubesOS/qubes-issues#2408
This commit is contained in:
parent
3b680ebc94
commit
800fcfd880
@ -2017,6 +2017,11 @@ class QubesVm(object):
|
|||||||
# preparing DispVM, where it isn't needed because of "invisible"
|
# preparing DispVM, where it isn't needed because of "invisible"
|
||||||
# mode
|
# mode
|
||||||
start_guid = False
|
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:
|
if start_guid:
|
||||||
self.start_guid(verbose=verbose, notify_function=notify_function,
|
self.start_guid(verbose=verbose, notify_function=notify_function,
|
||||||
|
Loading…
Reference in New Issue
Block a user