]> piware.de Git - bin.git/commitdiff
vm: Switch display backend
authorMartin Pitt <martin@piware.de>
Sat, 6 Jun 2020 13:32:58 +0000 (15:32 +0200)
committerMartin Pitt <martin@piware.de>
Sat, 6 Jun 2020 13:32:58 +0000 (15:32 +0200)
SDL does not work any more under wayland, use GTK.

vm

diff --git a/vm b/vm
index 14f24837c037fec4bdb8d2afe32a5e9e99c618d8..0f14fea1aae50c1d9d4a9290a2a03f91bf303767 100755 (executable)
--- a/vm
+++ b/vm
@@ -9,7 +9,7 @@ while echo '' | nc localhost $ssh_port >/dev/null; do
     ssh_port=$((ssh_port+1))
 done
 echo "Host ssh port: $ssh_port"
-qemu-system-x86_64 -enable-kvm -display sdl -m 2048 -device virtio-rng-pci \
+qemu-system-x86_64 -enable-kvm -display gtk -m 2048 -device virtio-rng-pci \
     -drive file="$image",if=virtio \
     -virtfs local,id=src,path=$HOME,security_model=none,mount_tag=home,readonly \
     -net nic,model=virtio -net user,hostfwd=tcp::${ssh_port}-:22 "$@"