diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-23 09:59:28 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-23 09:59:28 -0300 |
commit | da1def2ff63f04bd545cf2701d0af3c8895bd0a0 (patch) | |
tree | 5bc3caa45a793ddb7fedd29f70276758e612822c | |
parent | cde4650d4c30b867365caf15d5566a890af2d50c (diff) | |
download | kvmx-da1def2ff63f04bd545cf2701d0af3c8895bd0a0.tar.gz kvmx-da1def2ff63f04bd545cf2701d0af3c8895bd0a0.tar.bz2 |
Keep spicec the default client when spice_client is not defined
-rwxr-xr-x | kvmx | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -254,14 +254,14 @@ function kvmx_spice { spicy -h localhost -p $PORT & elif [ "$spice_client" == "virt-viewer" ] && which virt-viewer &> /dev/null; then remote-viewer spice://localhost:$PORT & - elif [ "$spice_client" == "spicec" ]; then + elif [ ! -z "$spice_client" ] && [ "$spice_client" != "spicec" ]; then + echo "$BASENAME: spice_client $spice_client not currently supported" + exit 1 + 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 - else - echo "$BASENAME: spice_client $spice_client not currently supported" - exit 1 fi SPICEPID="$!" |