xpra icon
Bug tracker and wiki

Opened 2 years ago

Closed 2 years ago

Last modified 5 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

Description

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 2 years ago.
text copied to remote clipboard
clipboard-html5-macos.patch (3.7 KB) - added by Antoine Martin 5 months ago.
PoC to fix the HTML5 clipboard synchronization with macos clients (tested with chrome)

Download all attachments as: .zip

Change History (7)

Changed 2 years ago by Josh

text copied to remote clipboard

comment:1 Changed 2 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.

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.

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

Milestone: 0.16

@joshiggins: can we close this one?

comment:4 Changed 2 years ago by Josh

Resolution: fixed
Status: newclosed

@antoine: Yes

Changed 5 months 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 months ago by Antoine Martin

Follow up in #1461

Note: See TracTickets for help on using tickets.