Configuring the clipboard on a Linux NICE DCV Server - NICE DCV

Configuring the clipboard on a Linux NICE DCV Server

Linux operating systems feature two buffers that you can use to copy and paste content. The buffers are the primary selection and the clipboard. To copy content into the primary selection, highlight the content by dragging the pointer. To paste it from the primary selection, use either the pointer or the Shift+Insert keyboard shortcut. To copy content into the clipboard, highlight the content and select Copy from the context (right-click) menu. To paste it from the clipboard, select Paste from the context (right-click) menu.

On a Linux NICE DCV server, you can configure the server to use either the primary selection or clipboard when performing copy and paste actions between the client and the server.

Pasting client clipboard content to the primary selection

By default, content that's copied in the client is placed in the clipboard. To paste this content on the server, you must paste it from the clipboard using the context (right-click) menu.

You can configure the server to place the clipboard content into the primary selection. By doing so, users can paste the copied content from both the clipboard using the context (right-click) menu. Alternatively, they can paste the copied content from the primary selection using either the mouse's middle button or the Shift+Insert keyboard shortcut.

To configure the server to place clipboard content into the primary selection
  1. Navigate to /etc/dcv/ and open the dcv.conf with your preferred text editor.

  2. Locate the primary-selection-paste parameter in the [clipboard] section and set the value to true.

    If there's no primary-selection-paste parameter in the [clipboard] section, add it manually using the following format:

    [clipboard] primary-selection-paste=true
  3. Save and close the file.

  4. Stop and restart the NICE DCV session.

Copying primary selection content to the client clipboard

By default, users can copy content only from the server to the client using the clipboard. This means that content copied into the primary selection can't be pasted on the client.

You can configure the server to place the primary selection content into the clipboard. This means that when a user copies content to the primary selection on the server, the content is also copied into the clipboard. This also means that the user can paste the content from the clipboard into the client.

To configure the server to place primary selection content into the clipboard
  1. Navigate to /etc/dcv/ and open the dcv.conf with your preferred text editor.

  2. Locate the primary-selection-copy parameter in the [clipboard] section and set the value to true.

    If there's no primary-selection-copy parameter in the [clipboard] section, add it manually using the following format:

    [clipboard] primary-selection-copy=true
  3. Save and close the file.

  4. Stop and restart the NICE DCV session.