diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-07-17 10:53:59 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-07-17 10:53:59 -0300 |
commit | 3a216c3d3fc12ddf9d6868b3b279e69601bd89bf (patch) | |
tree | 3a2e839779c3538e0db1de59b73bae920a11c9e5 | |
parent | 3ea27a05786566700ab15875f5ef9042d9c69a04 (diff) | |
download | kvmx-3a216c3d3fc12ddf9d6868b3b279e69601bd89bf.tar.gz kvmx-3a216c3d3fc12ddf9d6868b3b279e69601bd89bf.tar.bz2 |
Support for spicy and virt-viewer
-rwxr-xr-x | kvmx | 14 | ||||
-rw-r--r-- | kvmxfile | 3 |
2 files changed, 13 insertions, 4 deletions
@@ -207,10 +207,16 @@ function kvmx_spice { exit 1 fi - # https://lists.freedesktop.org/archives/spice-devel/2013-September/014643.html - SPICE_NOGRAB=1 spicec --host localhost --port $PORT &> $SPICELOG & - #spicy -h localhost -p $PORT - #remote-viewer spice://localhost:$PORT + if [ "$spice_client" == "spicy" ] && which spicy &> /dev/null; then + spicy -h localhost -p $PORT & + elif [ "$spice_client" == "virt-viewer" ] && which virt-viewer &> /dev/null; then + remote-viewer spice://localhost:$PORT & + else + 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="$!" echo "$SPICEPID" > $SPICEFILE @@ -38,6 +38,9 @@ vnc_client="virt-viewer" # Set this if you want to attach an spice client when the machine boots. run_spice_client="1" +# SPICE client +spice_client="spicec" + # Set this if you want to start an xpra session when the machine boots. run_xpra="0" |