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
# 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.