From 273c971af872fd845305449a79e10ea587f42a95 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Sat, 21 May 2022 23:15:08 -0300 Subject: [PATCH] VMExtractor: Run graphical QEMU on debug mode only if a $DISPLAY is set --- biostools/extractors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/biostools/extractors.py b/biostools/extractors.py index d9c6836..cc6d0db 100644 --- a/biostools/extractors.py +++ b/biostools/extractors.py @@ -2558,7 +2558,7 @@ class VMExtractor(ArchiveExtractor): def _run_qemu(self, hdd=None, hdd_snapshot=True, floppy=None, floppy_snapshot=True, vvfat=None, boot='c', monitor_cmd=None, monitor_flag_file=None): # Build QEMU arguments. args = [self._qemu_path, '-m', '32', '-boot', boot] - if not self.debug: + if not self.debug or not os.getenv('DISPLAY'): args += ['-display', 'none', '-vga', 'none'] if monitor_cmd: args += ['-monitor', 'stdio']