From 800fcfd8801d2fdc3996b0983bb6a826d7475d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 30 Oct 2016 01:31:53 +0200 Subject: [PATCH] Do not start guid if DISPLAY is not set Fixes QubesOS/qubes-issues#2408 --- core-modules/000QubesVm.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core-modules/000QubesVm.py b/core-modules/000QubesVm.py index e8d9b6ce..8e9978a8 100644 --- a/core-modules/000QubesVm.py +++ b/core-modules/000QubesVm.py @@ -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,