xpra icon
Bug tracker and wiki

Opened 20 months ago

Closed 19 months ago

Last modified 14 months ago

#966 closed enhancement (fixed)

provide a persistent setting to select the default clipboard to synchronize

Reported by: Scott Venier Owned by: alas
Priority: minor Milestone: 0.16
Component: client Version: trunk
Keywords: Cc:

Description

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?

Attachments (2)

clipboard-win32-menu.png (143.1 KB) - added by Antoine Martin 14 months ago.
screenshot of the new win32 clipboard menu
clipboard-osx-menu.png (34.3 KB) - added by Antoine Martin 14 months ago.
new clipboard tray menu on osx

Download all attachments as: .zip

Change History (9)

comment:1 Changed 20 months ago by Antoine Martin

Owner: changed from Antoine Martin to Scott Venier

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:

  • on win32
  • with the new environment variable which can be used to specify a clipboard class (invaluable for testing on non-win32 platforms): XPRA_CLIPBOARD_CLASS="xpra.clipboard.translated_clipboard.TranslatedClipboardProtocolHelper" xpra attach ...

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)

comment:2 Changed 20 months ago by 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.

comment:3 Changed 19 months ago by Antoine Martin

Owner: changed from Scott Venier to alas

@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.

comment:4 Changed 19 months ago by alas

Resolution: fixed
Status: newclosed

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.

comment:5 Changed 18 months ago by 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:

  • xclip
  • the clipboard tool
  • with an xterm: middle click will paste the primary selection buffer

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.

Changed 14 months ago by Antoine Martin

Attachment: clipboard-win32-menu.png added

screenshot of the new win32 clipboard menu

comment:6 Changed 14 months ago by Antoine Martin

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

Changed 14 months ago by Antoine Martin

Attachment: clipboard-osx-menu.png added

new clipboard tray menu on osx

comment:7 Changed 14 months ago by Antoine Martin

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

Last edited 14 months ago by Antoine Martin (previous) (diff)
Note: See TracTickets for help on using tickets.