diff --git a/core-modules/000QubesVm.py b/core-modules/000QubesVm.py index 5765886e..0bebff10 100644 --- a/core-modules/000QubesVm.py +++ b/core-modules/000QubesVm.py @@ -1344,6 +1344,14 @@ class QubesVm(object): if (retcode != 0) : raise QubesException("Cannot start qubes-guid!") + if verbose: + print >> sys.stderr, "--> Sending monitor layout..." + + try: + subprocess.call([system_path["monitor_layout_notify_cmd"], self.name]) + except Exception as e: + print >>sys.stderr, "ERROR: %s" % e + if verbose: print >> sys.stderr, "--> Waiting for qubes-session..." diff --git a/core/qubes.py b/core/qubes.py index 5ef6ba09..2e21d6f7 100755 --- a/core/qubes.py +++ b/core/qubes.py @@ -61,6 +61,7 @@ system_path = { 'qubes_pciback_cmd': '/usr/lib/qubes/unbind-pci-device.sh', 'prepare_volatile_img_cmd': '/usr/lib/qubes/prepare-volatile-img.sh', + 'monitor_layout_notify_cmd': '/usr/bin/qubes-monitor-layout-notify', } vm_files = {