aboutsummaryrefslogtreecommitdiff
path: root/kvmx-vdagent
diff options
context:
space:
mode:
Diffstat (limited to 'kvmx-vdagent')
-rwxr-xr-xkvmx-vdagent6
1 files changed, 6 insertions, 0 deletions
diff --git a/kvmx-vdagent b/kvmx-vdagent
index 9437a8e..e938b74 100755
--- a/kvmx-vdagent
+++ b/kvmx-vdagent
@@ -30,3 +30,9 @@ done
if which spice-vdagent &> /dev/null ; then
spice-vdagent
fi
+
+# Initialize the clipboard with some content: this seems necessary in order to
+# the clipboard link start working between host and guest.
+if which xclip &> /dev/null; then
+ echo $RANDOM | xclip
+fi