-
Notifications
You must be signed in to change notification settings - Fork 55
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
clipboard sharing stopped working from client to remote application #298
Comments
Please include more details as per https://github.com/Xpra-org/xpra/wiki/Reporting-Bugs Clipboard synchronization keeps changing in browsers as they add and remove APIs, and / or make it more difficult to use existing ones. |
I had bumped into #283 and #273 but thought they were at an advanced stage compared to mine because at least something was being copied :-)
Checked trailing server.log with clipboard debugging on both sides, when copying from remote app a great deal of text is added to it, including the copied string, but since this works as intended to paste data from remote app to html5 client side, I suppose it's not interesting for you.
repeated 12 times. |
BTW I tried reviewing the manpage, but I am too much of a newbie to understand what I need to do to run the html5 server through https 😓 |
All of these are the default values and should not be needed.
"All" you need is a valid SSL certificate. |
Thank you, I just managed to connect on https, and same thing happens as detailed above, I can copy out, but it won't copy in |
Then I guess that the next step is to look at the javascript console for clipboard messages after enabling "clipboard" debugging on the connect page. |
Javascript console reports
usually preceded by
So it doesn't look too helpful. The remark about the page being able to access the clipboard made me ponder, but then I realized that I can copy from the remote app to client side, so xpra has write access to the clipboard, so why shouldn't it have read access, too? |
Just tried on firefox + windows, same symptoms. Since I was using clipboard normally while in windows, and no permissions dialogue appeared in the meantime, I can exclude that it's a clipboard access privilege issue. |
Thank you for your patience. I will be making a bug fix release ASAP. |
Ahah, cool! |
FYI: I have uploaded beta builds with this fix for most distributions: https://xpra.org/beta/ |
I have installed the html5 component version 13, and now I see the following when I try and paste data into the remote app (it correctly shows "test" is the content of the clipboard), but nothing is actually pasted in the remote app:
Before, I could copy from the remote app and paste into itself, I just couldn't paste from client side into remote app, now nothing will work, but at least the debug message will show the clipboard contents. |
By the way, I can still copy in remote app and paste in client side. |
I've done quite a bit of testing when I worked on #301 and could not reproduce any problems, so this will not be worked on. |
Well that's a bummer, as I just verified again, and with version 13 beta I cannot copy from host to the remote app, but can copy from remote app to host 🤷 |
@ephestione have you tried hitting the new "copy" button in the top bar? |
I noticed the copy button reported in that other thread, I just don't know where it's featured 😅 I was already using the latest beta from the url you provided above, I uninstalled it and installed from apt but it got the normal version 12 which didn't show the button... I suppose it's not the end of the world, I can get to paste the kind of text I need by using the upload/download features, and creating dummy files in a samba share 😛 |
Run the latest code with:
|
I like being bleeding edge, I now have the clipboard button but unless I am not using it properly (clipboard of client is populated, I pressed the clipboard button on the interface, and then tried pasting into the field of remote app, but still nothing). Disabling the clipboardevents field in about:config still doesn't help. |
Updated to Firefox 126, no changes |
I have searched the closed issues and found several hits, yet there seems to be nothing in the open ones.
Briefly, clipboard sharing worked fine in firefox before, both ways, and I happily used it, until it didn't anymore. I cannot pinpoint it to a specific xpra update (using xpra.org source for apt in debian bullseye) because a few xpra updates were released between the previous time I needed to use the clipboard, and when I tried it again.
What works, is copying inside the remote app, and pasting to the client side. But if I copy in client side and try to paste to remote app, the remote clipboard will not contain what I copied on the client side, it will either be empty, or contain whatever I had copied from the remote app.
It it's any help, both in chromium and in firefox I sometimes have to trigger the copy action multiple times inside the remote window, to actually have the clipboard contents also show in the client side.
The text was updated successfully, but these errors were encountered: