Xpra: Ticket #966: provide a persistent setting to select the default clipboard to synchronize

On the win32 client, there's a setting to select which of the x11 clipboards to use for synchronization. Currently it defaults to "clipboard". I'd like to have it default to "primary". Presumably someone might want "clipboard" or "secondary". Maybe a configuration setting that persists between invocations of the client could be added?



Thu, 10 Sep 2015 14:43:07 GMT - Antoine Martin: owner changed

Should work as of r10600. Mostly a client update, any recent 0.16 server builds should handle this new feature. If the server does not support enabling selections on the fly, the new options will have no effect (check added in r10603).

The new command line options are only shown when they are likely to be used:

Tested with both Linux (via env var above) and win32, where I can now synchronize the "main" clipboard with the "PRIMARY" selection used by xterms:

xpra attach --remote-clipboard=PRIMARY ...

You can also add remote-clipboard = PRIMARY to your client's xpra.conf to make this change permanent.

@scottven: does that work for you? (fairly recent beta builds are available, at least for win32 clients)


Mon, 14 Sep 2015 09:01:13 GMT - Antoine Martin:

Being able to switch clipboard implementations was very useful for testing, so r10636 makes it easier: the clipboard option is no longer a boolean, we support: --clipboard=translated to switch to the translated clipboard on non-win32 platforms.


Mon, 05 Oct 2015 11:19:47 GMT - Antoine Martin: owner changed

@afarr: just a FYI - please close.

You may find it useful now that it works properly for synchronizing with the "PRIMARY" clipboard: makes it easier to copy things from the xterm selection buffer.


Mon, 19 Oct 2015 21:41:46 GMT - alas: status changed; resolution set

Tested real quick with 0.16.0 r10853 client v. r10854 server - and it is indeed extremely handy for copying from the xterms. Couldn't figure out how to paste back into the session with clipboard set to default though. Don't suppose I'm meant to be able to copy from a windows clipboard to a primary clipboard server-side though.

I was a little surprised (well, a tiny bit) that I couldn't highlight something in an xterm then paste into a chromium browser also within the session - but I suppose even fedora browser only paste from the clipboard clipboard?

Anyway, closing.


Tue, 20 Oct 2015 11:34:52 GMT - Antoine Martin:

Couldn't figure out how to paste back into the session with clipboard set to default though


You can always interact with the clipboard at a low level using:

Note: I have not tested any of this because all my test systems are "clipboard challenged" (linked with synergy clipboard sharing already).


I was a little surprised (well, a tiny bit) that I couldn't highlight something in an xterm then paste into a chromium browser also within the session - but I suppose even fedora browser only paste from the clipboard clipboard?


Exactly.


Thu, 25 Feb 2016 07:00:57 GMT - Antoine Martin: attachment set

screenshot of the new win32 clipboard menu


Thu, 25 Feb 2016 07:01:30 GMT - Antoine Martin:

For reference, the new tray menu looks like this: screenshot of the new win32 clipboard menu


Thu, 25 Feb 2016 16:41:34 GMT - Antoine Martin: attachment set

new clipboard tray menu on osx


Thu, 25 Feb 2016 16:42:02 GMT - Antoine Martin:

As of r12059, this is now also supported on OSX (#1011): new clipboard tray menu on osx


Sat, 23 Jan 2021 05:11:06 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/966