From 097d9cab62c7b10da81f0a683287d611f977c85e Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 4 May 2022 19:48:27 -0300 Subject: Adds kvmx_vdagent config param --- kvmx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'kvmx') 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 } -- cgit v1.2.3