improve spice integration

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-04-24 15:19:09 +02:00
parent d6b47e68bd
commit 09cc3546b9
3 changed files with 18 additions and 0 deletions

View File

@ -16,6 +16,7 @@ INSTALLER_SOURCES= \
pbs-banner.png \
checktime \
xinitrc \
spice-vdagent.sh \
Xdefaults \
country.dat \
proxinstall
@ -47,6 +48,7 @@ install: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES}
install -D -m 755 proxinstall ${DESTDIR}/usr/bin/proxinstall
install -D -m 755 checktime ${DESTDIR}/usr/bin/checktime
install -D -m 644 xinitrc ${DESTDIR}/.xinitrc
install -D -m 644 spice-vdagent.sh ${DESTDIR}/.spice-vdagent.sh
install -D -m 644 Xdefaults ${DESTDIR}/.Xdefaults
pmg-banner.png: pmg-banner.svg

15
spice-vdagent.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
[ -e '/dev/virtio-ports/com.redhat.spice.0' ] || exit 0
mkdir -p /var/run/spice-vdagentd
/sbin/spice-vdagentd -X
/bin/spice-vdagent
# TODO: make installer more responsive, then we can enable auto resize
#primary=$(xrandr | awk '/connected primary/ {print $1}')
#while true; do
# xrandr --output "$primary" --auto
# xsetroot -solid grey
# sleep 0.5
#done

View File

@ -1,4 +1,5 @@
/usr/bin/xrdb -load /.Xdefaults
/usr/bin/X11/xsetroot -solid grey
openbox &
/.spice-vdagent.sh &
G_SLICE=always-malloc /usr/bin/proxinstall