Xpra: Ticket #842: html5 client clipboard support

The HTML5 client should support text data exchange between the remote and local clipboards.

But! The local clipboard cannot be accessed from any browser at will. You can only access it during a clipboard event, i.e. if the user has pasted something in the browser window.

Therefore, the user would have to copy from their local application, paste into the html5 client, and then use the paste in the remote application. Maybe we can press CTRL+C for them to automate the remote paste?

Anyway, to get data that has been copied into the remote clipboard, we must display some kind of dialog to allow the user to manually copy to their local clipboard: user copies to clipboard in remote application, html5 client prompts with the text, user selects text and copies into their local clipboard.



Wed, 22 Apr 2015 19:54:47 GMT - Josh: attachment set

text copied to remote clipboard


Wed, 22 Apr 2015 19:58:27 GMT - Josh:

r9118 demonstrates prompting the user with remote clipboard data. You can copy from this prompt box manually and the data eventually makes it to your local clipboard.

http://xpra.org/trac/raw-attachment/ticket/842/Screen%20Shot%202015-04-22%20at%2020.36.23.png

Right now there is no client UI in the html5 client once we are connected, so not sure how this could be worked in to be slicker.

Maybe like the Guacamole people do it http://guac-dev.org/doc/gug/using-guacamole.html#client-screen.


Thu, 23 Apr 2015 17:17:30 GMT - Josh:

r9139 + r9140 + r9141 make the clipboard quite useful.

It works as described above - you should paste into the browser to get data onto the remote clipboard (meaning you have to paste again in the remote application).

In the other direction, a prompt will appear if you copy something to the remote clipboard so you can manually copy it back to your local clipboard.


Thu, 17 Sep 2015 16:04:09 GMT - Antoine Martin: milestone set

@joshiggins: can we close this one?


Thu, 17 Sep 2015 19:39:16 GMT - Josh: status changed; resolution set

@antoine: Yes


Tue, 16 May 2017 16:13:35 GMT - Antoine Martin: attachment set

PoC to fix the HTML5 clipboard synchronization with macos clients (tested with chrome)


Wed, 17 May 2017 04:07:35 GMT - Antoine Martin:

Follow up in #1461


Sat, 23 Jan 2021 05:07:37 GMT - migration script:

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