aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-04-01 14:42:51 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-04-01 14:42:51 -0300
commitdc49dff6088323b6b5133a7b7fd6299340823494 (patch)
treec6ee8056d5407a884edaa2251affcdf9430ce24e
parent7a0d02fb152b2c9a57db8d3287752af3b2647c18 (diff)
downloadkvmx-dc49dff6088323b6b5133a7b7fd6299340823494.tar.gz
kvmx-dc49dff6088323b6b5133a7b7fd6299340823494.tar.bz2
VNC: support for virt-viewer
-rwxr-xr-xkvmx10
-rw-r--r--kvmxfile3
2 files changed, 9 insertions, 4 deletions
diff --git a/kvmx b/kvmx
index 56e4991..c5bfcd6 100755
--- a/kvmx
+++ b/kvmx
@@ -779,12 +779,16 @@ function kvmx_vnc {
fi
if [ -z "$vnc_client" ]; then
- vnc_client="xvncviewer"
+ vnc_client="virt-viewer"
fi
if which $vnc_client &> /dev/null; then
- GUEST_DISPLAY="`cat $DISPLAYFILE`"
- $vnc_client :$GUEST_DISPLAY
+ if [ "$vnclient_client" == "virt-viewer" ]; then
+ $vnc_client vnc://127.0.0.1:$GUEST_DISPLAY
+ else
+ GUEST_DISPLAY="`cat $DISPLAYFILE`"
+ $vnc_client :$GUEST_DISPLAY
+ fi
else
echo "$BASENAME: no vnc_client configured"
exit 1
diff --git a/kvmxfile b/kvmxfile
index 20309f4..988157c 100644
--- a/kvmxfile
+++ b/kvmxfile
@@ -29,7 +29,8 @@ graphics="-vga qxl"
# VNC Client
#vnc_client="xtightvncviewer"
#vnc_client="xvnc4viewer"
-vnc_client="xvncviewer"
+#vnc_client="xvncviewer"
+vnc_client="virt-viewer"
# Set this if you want to automatically attach an spice client when the machine
# boots.