]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Adds kvmx_vdagent config param
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 4 May 2022 22:48:27 +0000 (19:48 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 4 May 2022 22:48:27 +0000 (19:48 -0300)
kvmx
kvmxfile

diff --git a/kvmx b/kvmx
index 42252dd6f63c636ffe13e1f4a6404985b5e7df13..25dd0a39828dd38d8d18dff6cc85acaf90ecfdbe 100755 (executable)
--- 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
 }
index 308a59d57c33d40f0d307d92e0cd5bab47614148..d51797286513bfc357e9d37035f6f2dadea69a87 100644 (file)
--- 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"