aboutsummaryrefslogtreecommitdiff
path: root/kvmx-vdagent
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-03-24 13:48:48 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-03-24 13:48:48 -0300
commit9861c861b55e7f8efca6532a3968b16eb59e9e58 (patch)
treea0f8b2f87812aa3329686b1ae2279c0201b65d7c /kvmx-vdagent
parenta2989b09d5ebb71ae93fc4757fab5df88193b1f0 (diff)
downloadkvmx-9861c861b55e7f8efca6532a3968b16eb59e9e58.tar.gz
kvmx-9861c861b55e7f8efca6532a3968b16eb59e9e58.tar.bz2
Initialize the clipboard at kvmx-vdagent
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