From 92844a161ac923ce70f816d5728ac094e0c1c4c4 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Fri, 15 Jun 2012 17:40:03 +0200 Subject: [PATCH] dom0: qvm-run --nogui support for HVM Translate it to "nogui:" command prefix. --- dom0/qvm-core/qubes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index f7385009..4624c955 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -2406,6 +2406,8 @@ class QubesHVm(QubesVm): def run(self, command, **kwargs): if self.qrexec_installed: + if 'gui' in kwargs and kwargs['gui']==False: + command = "nogui:" + command super(QubesHVm, self).run(command, **kwargs) else: raise QubesException("Needs qrexec agent installed in VM to use this function. See also qvm-prefs.")