From a29dcef6ed8208cac14bd920074925effb983733 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Tue, 20 Sep 2022 13:02:48 +0100 Subject: [PATCH] Apply display= if set in the VM configuration. Close #520 --- quickemu | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/quickemu b/quickemu index 06cf346..949130d 100755 --- a/quickemu +++ b/quickemu @@ -1422,6 +1422,7 @@ boot="efi" cpu_cores="" disk_img="" disk_size="" +display="" extra_args="" fixed_iso="" floppy="" @@ -1665,6 +1666,10 @@ if [ -n "${VM}" ] && [ -e "${VM}" ]; then disk_size="${disk}" fi + if [ -n "${display}" ]; then + OUTPUT="${display}" + fi + # Set the default OUTPUT if not provided by user if [ -z "${OUTPUT}" ]; then OUTPUT="sdl" @@ -1674,6 +1679,7 @@ if [ -n "${VM}" ] && [ -e "${VM}" ]; then if [ -n "${BRAILLE}" ]; then OUTPUT="sdl" fi + display_param_check if [ -z "${VIEWER}" ]; then VIEWER="${viewer}"