aboutsummaryrefslogtreecommitdiff
path: root/kvmx
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-12-29 01:23:04 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-12-29 01:23:04 -0300
commit25e3811d7e26ad427f2f628bf0d8260b76c15cf6 (patch)
tree0e3c2687760073ab9977d74da4656e43b1324508 /kvmx
parentfdca032d9aff7e8baf7805fad83b9bdd06cbbf87 (diff)
downloadkvmx-25e3811d7e26ad427f2f628bf0d8260b76c15cf6.tar.gz
kvmx-25e3811d7e26ad427f2f628bf0d8260b76c15cf6.tar.bz2
Fix: spice clients support
Diffstat (limited to 'kvmx')
-rwxr-xr-xkvmx16
1 files changed, 9 insertions, 7 deletions
diff --git a/kvmx b/kvmx
index fb0faec..1ca55e1 100755
--- a/kvmx
+++ b/kvmx
@@ -257,10 +257,17 @@ function kvmx_spice {
if [ "$spice_client" == "spicy" ] && which spicy &> /dev/null; then
#spicy -h localhost -p $PORT &
spicy --uri=spice+unix://$SPICESOCKET &
- elif [ "$spice_client" == "virt-viewer" ] && which virt-viewer &> /dev/null; then
+ elif [ "$spice_client" == "remote-viewer" ] && which remote-viewer &> /dev/null; then
#remote-viewer spice://localhost:$PORT &
remote-viewer spice+unix://$SPICESOCKET &
- #elif [ ! -z "$spice_client" ] && [ "$spice_client" != "spicec" ]; then
+ # This is untested due to libvirt requirements
+ elif [ "$spice_client" == "virt-viewer" ] && which virt-viewer &> /dev/null; then
+ #virt-viewer spice://localhost:$PORT &
+ virt-viewer spice+unix://$SPICESOCKET &
+ # Unsupported as spicec was deprecated
+ #elif [ "$spice_client" != "spicec" ] && which spicec &> /dev/null; then
+ # # https://lists.freedesktop.org/archives/spice-devel/2013-September/014643.html
+ # SPICE_NOGRAB=1 spicec --host localhost --port $PORT &> $SPICELOG &
elif [ ! -z "$spice_client" ]; then
echo "$BASENAME: spice_client $spice_client not currently supported"
exit 1
@@ -269,11 +276,6 @@ function kvmx_spice {
#spicy -h localhost -p $PORT &
spicy --uri=spice+unix://$SPICESOCKET &
fi
-
- #if which spicec &> /dev/null; then
- # # https://lists.freedesktop.org/archives/spice-devel/2013-September/014643.html
- # SPICE_NOGRAB=1 spicec --host localhost --port $PORT &> $SPICELOG &
- #fi
fi
SPICEPID="$!"