]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Restart vdagent on kvmx_spice
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 8 Apr 2018 23:51:19 +0000 (20:51 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 8 Apr 2018 23:51:19 +0000 (20:51 -0300)
kvmx

diff --git a/kvmx b/kvmx
index 139d5306f49bfdd4f986ac2f990cbd8e0d435206..c2a620e4f0a68e0f80d5a54737892087f78c6664 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -248,6 +248,11 @@ function kvmx_spice {
 
     xdotool search --name "SPICEc:0" set_window --name $VM
   fi
+
+  # Restart vdagent
+  if [ "$ssh_support" == "y" ]; then
+    echo "which kvmx-vdagent > /dev/null && DISPLAY=:0 kvmx-vdagent" | kvmx_ssh
+  fi
 }
 
 # Bring virtual machine up