Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html5 client clipboard support #73

Closed
totaam opened this issue Apr 22, 2015 · 7 comments
Closed

html5 client clipboard support #73

totaam opened this issue Apr 22, 2015 · 7 comments

Comments

@totaam
Copy link
Collaborator

totaam commented Apr 22, 2015

Issue migrated from trac ticket # 842

component: html5 | priority: major | resolution: fixed

2015-04-22 20:51:00: joshiggins created the issue


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.

@totaam
Copy link
Collaborator Author

totaam commented Apr 22, 2015

2015-04-22 20:54:47: joshiggins uploaded file Screen Shot 2015-04-22 at 20.36.23.png (161.8 KiB)

text copied to remote clipboard
Screen Shot 2015-04-22 at 20.36.23.png

@totaam
Copy link
Collaborator Author

totaam commented Apr 22, 2015

2015-04-22 20:58:27: joshiggins commented


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.

[[Image(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.

@totaam
Copy link
Collaborator Author

totaam commented Apr 23, 2015

2015-04-23 18:17:30: joshiggins commented


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.

@totaam
Copy link
Collaborator Author

totaam commented Sep 17, 2015

@joshiggins: can we close this one?

@totaam
Copy link
Collaborator Author

totaam commented Sep 17, 2015

2015-09-17 20:39:16: joshiggins commented


@antoine: Yes

@totaam totaam closed this as completed Sep 17, 2015
@totaam
Copy link
Collaborator Author

totaam commented May 16, 2017

2017-05-16 17:13:36: antoine uploaded file clipboard-html5-macos.patch (3.7 KiB)

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

@totaam
Copy link
Collaborator Author

totaam commented May 17, 2017

2017-05-17 05:07:35: antoine commented


Follow up in Xpra-org/xpra#1461

@totaam totaam transferred this issue from Xpra-org/xpra Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant