aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-05-04 19:48:27 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-05-04 19:48:27 -0300
commit097d9cab62c7b10da81f0a683287d611f977c85e (patch)
tree67f8e82ab5215a2b00270b851a1c648c9827976d
parentd93c024d86c04135758d346b8a59757e22a03107 (diff)
downloadkvmx-097d9cab62c7b10da81f0a683287d611f977c85e.tar.gz
kvmx-097d9cab62c7b10da81f0a683287d611f977c85e.tar.bz2
Adds kvmx_vdagent config param
-rwxr-xr-xkvmx6
-rw-r--r--kvmxfile3
2 files changed, 7 insertions, 2 deletions
diff --git a/kvmx b/kvmx
index 42252dd..25dd0a3 100755
--- a/kvmx
+++ b/kvmx
@@ -299,9 +299,11 @@ function kvmx_spice {
kvmx_xrandr
fi
- # Restart vdagent
+ # Ensure vdagent is running
if [ "$ssh_support" == "y" ]; then
- echo "which kvmx-vdagent > /dev/null && DISPLAY=:0 kvmx-vdagent" | kvmx_ssh
+ if [ "$kvmx_vdagent" != "0" ]; then
+ echo "which kvmx-vdagent > /dev/null && DISPLAY=:0 kvmx-vdagent" | kvmx_ssh
+ fi
fi
fi
}
diff --git a/kvmxfile b/kvmxfile
index 308a59d..d517972 100644
--- a/kvmxfile
+++ b/kvmxfile
@@ -109,6 +109,9 @@ run_spice_client="1"
#spice_client="virt-viewer"
spice_client="spicy"
+# Set this if you want that kvmx-vdagent is triggered after the machine boots.
+kvmx_vdagent="1"
+
# Set this if you want to start an xpra session when the machine boots.
run_xpra="0"