Skip to content

Commit c0adca5

Browse files
committed
scripts: Replace DISPLAY with GFX
The DISPLAY variable may interfere the X11 DISPLAY env. Signed-off-by: Gary Lin <[email protected]>
1 parent 11368b4 commit c0adca5

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

scripts/general.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ CPU="-smp 4"
3131

3232
# SPICE
3333
SPICE_PORT=5901
34-
DISPLAY="-vga qxl \
35-
-spice port=${SPICE_PORT},addr=127.0.0.1,disable-ticketing=on"
34+
GFX="-vga qxl \
35+
-spice port=${SPICE_PORT},addr=127.0.0.1,disable-ticketing=on"
3636
# Set up vdagent for copy&paste between host and guest, dynamic resolution
3737
# changes, etc.
38-
DISPLAY="${DISPLAY} \
39-
-device virtio-serial \
40-
-chardev spicevmc,id=vdagent,debug=0,name=vdagent \
41-
-device virtserialport,chardev=vdagent,name=com.redhat.spice.0"
38+
GFX="${GFX} \
39+
-device virtio-serial \
40+
-chardev spicevmc,id=vdagent,debug=0,name=vdagent \
41+
-device virtserialport,chardev=vdagent,name=com.redhat.spice.0"
4242

4343
HDD_IMG="disk.img"
4444

@@ -75,7 +75,7 @@ qemu-system-x86_64 $KVM \
7575
$UEFI_VARS \
7676
$CPU \
7777
$MACH \
78-
$DISPLAY \
78+
$GFX \
7979
$HARDDRIVE \
8080
$MEMORY \
8181
$TPM \

scripts/multipath.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ CPU="-smp 4"
2929

3030
# SPICE
3131
SPICE_PORT=5901
32-
DISPLAY="-vga qxl \
33-
-spice port=${SPICE_PORT},addr=127.0.0.1,disable-ticketing=on"
32+
GFX="-vga qxl \
33+
-spice port=${SPICE_PORT},addr=127.0.0.1,disable-ticketing=on"
3434
# Set up vdagent for copy&paste between host and guest, dynamic resolution
3535
# changes, etc.
36-
DISPLAY="${DISPLAY} \
37-
-device virtio-serial \
38-
-chardev spicevmc,id=vdagent,debug=0,name=vdagent \
39-
-device virtserialport,chardev=vdagent,name=com.redhat.spice.0"
36+
GFX="${GFX} \
37+
-device virtio-serial \
38+
-chardev spicevmc,id=vdagent,debug=0,name=vdagent \
39+
-device virtserialport,chardev=vdagent,name=com.redhat.spice.0"
4040

4141
HDD_IMG="disk.img"
4242
MPIO_IMG="mpio.img"
@@ -80,7 +80,7 @@ qemu-system-x86_64 $KVM \
8080
$UEFI_VARS \
8181
$CPU \
8282
$MACH \
83-
$DISPLAY \
83+
$GFX \
8484
$HARDDRIVE \
8585
$MEMORY \
8686
$TPM \

0 commit comments

Comments
 (0)