xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.

Opened 7 years ago

Closed 7 years ago

Last modified 17 months ago

#842 closed enhancement (fixed)

html5 client clipboard support

Reported by: Josh Owned by: Josh
Priority: major Milestone: 0.16
Component: html5 Version: trunk
Keywords: Cc: aradtech


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.

Attachments (2)

Screen Shot 2015-04-22 at 20.36.23.png (161.8 KB) - added by Josh 7 years ago.
text copied to remote clipboard
clipboard-html5-macos.patch (3.7 KB) - added by Antoine Martin 5 years ago.
PoC to fix the HTML5 clipboard synchronization with macos clients (tested with chrome)

Download all attachments as: .zip

Change History (8)

Changed 7 years ago by Josh

text copied to remote clipboard

comment:1 Changed 7 years ago by 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.


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.

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

comment:3 Changed 7 years ago by Antoine Martin

Milestone: 0.16

@joshiggins: can we close this one?

comment:4 Changed 7 years ago by Josh

Resolution: fixed
Status: newclosed

@antoine: Yes

Changed 5 years ago by Antoine Martin

Attachment: clipboard-html5-macos.patch added

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

comment:5 Changed 5 years ago by Antoine Martin

Follow up in #1461

comment:6 Changed 17 months ago by migration script

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

Note: See TracTickets for help on using tickets.