Xpra Documentation

Clipboard

This feature allows you to copy from outside the xpra session and paste inside it, and vice versa. For various reasons, this doesn’t always work quite as well as expected - see below for more details.

Platform specific issues:

Configuration Options

Selections

The default auto setting synchronizes all the selections supported by the platform. On MS Windows and MacOS, auto is equivalent to all.

--clipboard=all enables every selection that the platform can handle. On Mac OSX and MS Windows clients, this adds the PRIMARY selection, which is handled as a special case since it does not exist locally:

This is implemented by PrimaryProxyMixin in xpra/clipboard/primary.py, which both platform backends share.

Technical Constraints

Clipboard support is an ongoing struggle.

You must ensure that there are no other clipboard synchronization tools already running as those are very likely to interfere and cause synchronization loops, wasted bandwidth, trigger application bugs, etc

In particular, avoid using the clipboard synchronization from your virtualization solution if you use one (ie: virtualbox, vmware, etc), or from tools like synergy. Alternatively, you can disable xpra’s clipboard instead. Just avoid running both at the same time.

Debugging

Tool

There is a debugging tool which can be launched using xpra clipboard-test.

The easiest way to test the clipboard on X11 platforms is to use xclip tool to set and verify the contents of each clipboard.

Note: on win32, you will need to change the clipboard currently in use to match the one you modify, this must be done before changing the value to ensure it is propagated.

Logging

just add -d clipboard to your xpra command line.

Useful Pointers

For low level implementation details, see clipboard subsystem.

Related tickets