aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-04-08 20:51:19 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-04-08 20:51:19 -0300
commit1e0962a05a99456ea6bba97065c1e63aa3f0b881 (patch)
tree08b14b2d12e12ebf5f5724fcfa6e1f08eedad086
parent6d10ed52ca130aaabcb0ed27e198dc5d66426061 (diff)
downloadkvmx-1e0962a05a99456ea6bba97065c1e63aa3f0b881.tar.gz
kvmx-1e0962a05a99456ea6bba97065c1e63aa3f0b881.tar.bz2
Restart vdagent on kvmx_spice
-rwxr-xr-xkvmx5
1 files changed, 5 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 139d530..c2a620e 100755
--- 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