[pve-devel] [PATCH qemu-server v3 2/6] added clipboard variable to return at status/current

Dominik Csapak d.csapak at proxmox.com
Thu Mar 2 11:28:19 CET 2023


comment inline

On 10/28/22 14:33, Markus Frank wrote:
> By that noVNC is able to check if clipboard is active.
> 
> Signed-off-by: Markus Frank <m.frank at proxmox.com>
> ---
>   PVE/API2/Qemu.pm | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
> index 99b426e..25f3a1d 100644
> --- a/PVE/API2/Qemu.pm
> +++ b/PVE/API2/Qemu.pm
> @@ -2428,6 +2428,11 @@ __PACKAGE__->register_method({
>   		type => 'boolean',
>   		optional => 1,
>   	    },
> +	    clipboard => {
> +		description => "Qemu clipboard enabled in config.",

i'd expand a bit here, e.g. by mentioning novnc

> +		type => 'boolean',
> +		optional => 1,
> +	    },
>   	},
>       },
>       code => sub {
> @@ -2446,6 +2451,7 @@ __PACKAGE__->register_method({
>   	    my $spice = defined($vga->{type}) && $vga->{type} =~ /^virtio/;
>   	    $spice ||= PVE::QemuServer::vga_conf_has_spice($conf->{vga});
>   	    $status->{spice} = 1 if $spice;
> +	    $status->{clipboard} = $vga->{clipboard};
>   	}
>   	$status->{agent} = 1 if PVE::QemuServer::get_qga_key($conf, 'enabled');
>   






More information about the pve-devel mailing list