diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-03-27 16:43:54 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-06-06 09:14:42 +0200 |
commit | d4970b071f698a4f3984487bbb97d1ecc36f5950 (patch) | |
tree | 7dd2aa675d1f1432f3602ec03bf49e71f4665848 /ui | |
parent | 35106c2df2eda83e5f7fea356d80c11fed93df1f (diff) | |
download | qemu-d4970b071f698a4f3984487bbb97d1ecc36f5950.zip qemu-d4970b071f698a4f3984487bbb97d1ecc36f5950.tar.gz qemu-d4970b071f698a4f3984487bbb97d1ecc36f5950.tar.bz2 |
spice: add option for disabling copy paste support
Some people want to be able disable spice's guest <-> client copy paste support
because of security considerations.
[ kraxel: drop old-version error message ]
Diffstat (limited to 'ui')
-rw-r--r-- | ui/spice-core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/spice-core.c b/ui/spice-core.c index ef56ed6..a3351f3 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -554,6 +554,12 @@ void qemu_spice_init(void) spice_server_set_noauth(spice_server); } +#if SPICE_SERVER_VERSION >= 0x000801 + if (qemu_opt_get_bool(opts, "disable-copy-paste", 0)) { + spice_server_set_agent_copypaste(spice_server, false); + } +#endif + compression = SPICE_IMAGE_COMPRESS_AUTO_GLZ; str = qemu_opt_get(opts, "image-compression"); if (str) { |