Linux Virtual Delivery Agent

Clipboard redirection

Clipboard redirection lets you copy and paste data between applications that are running in the VDA session and applications running on the client device.

This article describes the available Citrix® policies that allow you to achieve clipboard redirection.

Citrix policies for clipboard redirection

Client clipboard redirection

This setting allows or prevents the clipboard on the client device being mapped to the clipboard on the VDA.

By default, clipboard redirection is set to Allowed.

To prevent copy-and-paste data transfer between a session and the local clipboard, select Prohibited. Users can still copy and paste data between applications running in sessions.

Clipboard redirection bandwidth limit

This setting specifies the maximum allowed bandwidth (kbps) for data transfer between the session and the local clipboards.

Clipboard redirection bandwidth limit percent

This setting specifies the maximum allowed bandwidth for data transfer between the session and the local clipboards, as a percentage of the total session bandwidth.

Limit clipboard client to session transfer size(non-file type limit)

This setting specifies the maximum size of clipboard data that a single copy-and-paste operation can transfer from a client device to a virtual session.

To limit the clipboard transfer size, enable the Limit clipboard client to session transfer size setting. Then, in the Size Limit field, enter a value in kilobytes to define the size of data transfer between the local clipboard and a session.

By default, this setting is disabled.

Limit clipboard session to client transfer size(non-file type limit)

This setting specifies the maximum size of clipboard data that a single copy-and-paste operation can transfer from a virtual session to a client device.

To limit the clipboard transfer size, enable the Limit clipboard session to client transfer size setting. Then, in the Size Limit field, enter a value in kilobytes to define the size of data transfer between a session and the local clipboard.

By default, this setting is disabled.

Limit clipboard client to session file type transfer size

This setting specifies the maximum size of a file that can be transferred via clipboard copy-and-paste from client to session.

To apply this limit, set the corresponding value (in KB) in the VDA local registry.

 /opt/Citrix/VDA/bin/ctxreg create -k "HKLM\System\CurrentControlSet\Control\Citrix\VirtualChannels\Clipboard" -t "REG_DWORD" -v "FileCopySizeLimitC2H" -d "<YourLimitSizeInKB>" --force
<!--NeedCopy-->

The default value is 0x00032000 (200MB).

Limit clipboard session to client file type transfer size

This setting specifies the maximum size of a file that can be transferred via clipboard copy-and-paste from session to client.

To apply this limit, set the corresponding value (in KB) in the VDA local registry.

/opt/Citrix/VDA/bin/ctxreg create -k "HKLM\System\CurrentControlSet\Control\Citrix\VirtualChannels\Clipboard" -t "REG_DWORD" -v "FileCopySizeLimitH2C" -d "<YourLimitSizeInKbyte>" --force
<!--NeedCopy-->

The default value is 0x00032000 (200MB).

Restrict client clipboard write AND Client clipboard write allowed formats

Enabling the two settings lets you allow specific data formats to be copied and pasted from the session to the client (writing to the client).

The following clipboard formats are system defined:

  • CF_TEXT
  • CF_BITMAP
  • CF_METAFILEPICT
  • CF_SYLK
  • CF_OEMTEXT
  • CF_DIB
  • CF_PALETTE
  • CF_UNICODETEXT
  • CF_LOCALE
  • CF_DIBV5
  • CF_HDROP

Restrict session clipboard write AND Session clipboard write allowed formats

Enabling the two settings lets you allow specific data formats to be copied and pasted from the client to the session (writing to the session).

The following clipboard formats are system defined:

  • CF_TEXT
  • CF_BITMAP
  • CF_METAFILEPICT
  • CF_SYLK
  • CF_OEMTEXT
  • CF_DIB
  • CF_PALETTE
  • CF_UNICODETEXT
  • CF_LOCALE
  • CF_DIBV5
  • CF_HDROP