diff options
Diffstat (limited to 'kvmx')
-rwxr-xr-x | kvmx | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 } |