From c664baaf08cc813d03c22029e9919b8a01e19fb2 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Thu, 19 Mar 2020 15:24:27 +0000 Subject: [PATCH] Put the VM name in the window title and assign it to the process --- quickemu.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quickemu.sh b/quickemu.sh index c3f1b0d..9c73adf 100755 --- a/quickemu.sh +++ b/quickemu.sh @@ -30,6 +30,7 @@ function vm_snapshot() { } function vm_boot() { + local VMNAME=$(basename ${VM} .conf) local BIOS="" local GL="on" local UI="sdl" @@ -135,7 +136,8 @@ function vm_boot() { #echo " - QEMU: qemu-${ENGINE}" # Boot the iso image - qemu-${ENGINE} ${BIOS} \ + qemu-${ENGINE} -name ${VMNAME},process=${VMNAME} \ + ${BIOS} \ -cdrom "${iso}" \ -drive "file=${disk_img},format=qcow2,if=virtio,aio=native,cache.direct=on" \ -enable-kvm \