-
Notifications
You must be signed in to change notification settings - Fork 60
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
Copy and Paste does not work properly via Xpra, it just copies plain text instead of the formatted text #273
Comments
Please run both client and server with 5.0.2 is old v9 does not exist. |
Many thanks for the quick answer! Should I add this parameter to the xpra.conf file? Or the xpra.service should contain this? Could you please send me the exact syntax? Many thanks in advance, |
I believe this ticket should be moved to the https://github.com/Xpra-org/xpra-html5 project since the screenshot and the "v9" specified seem to indicate that this is the type of client used. |
Hello @totaam, I was following the instructions in the xpra-html5 project... ...and start the application like that... ...but it still copies just plain text from the browser to my excel sheet... Did I miss something? Should I add somewhere the Thanks, |
Thank you @totaam. Is there any detailed description about how can I use the python client? Sorry if that's too obvious, but I'm not sure if I fully understand this request. |
|
Thanks for the input. I can execute the command with my OS user, but I get this...
If I set the clients folder permission to 777 it does not work neither, because it's expecting 700. I have added my OS user to the root group, but still getting the issue if the clients folder permission is 700. Thanks, |
You can ignore the warnings about permissions, these are not fatal.
Probably not a good idea. Are you sure that your server is on |
It's just a test Rocky 8 virtual machine on my notebook, so it does not hurt to add the OS user to the root group :) Ah okay, now it's a bit better. I did not execute the
Because of some reason it's still Connection failed. |
The cause of this failure is in your server log. |
Many thanks for your suggestion @totaam. In this case I get a timeout error...
...and I have this in the server log...
|
Add |
Okay. In this case there is no SSL error, I simply get a connection failed message...
...and here is the related message in the server log...
|
No. This is not your server log. |
It is your path, not mine. |
Yes, thanks for the notice. I can find the following details in the
NOTE: It's important to mention here that I have started previously xpra.service and xpra.socket You may find below the content of the
Thanks, |
It's still trying to do an ssl upgrade and failing:
Because you're not running as root this time. You haven't specified your command line, my guess is that you're using the one for root. xpra start --bind-tcp=0.0.0.0:10000 --no-daemon --ssl=no |
I would like to keep the server's IP if that's not real problem? I think it's getting better. I did two kind of tests... 1.) With my OS user I restarted my VM and started everything from scratch just in case. I executed the following command in a Terminal
...and this is the startup log...
Then I opened a new terminal and set the
...then I executed
...and I also got and error in the original Terminal where I started Xpra... I'm not sure why, because I did as you suggested with the Since it was still a Permission issue on the cert file, I did the same tests, but with root. 2.) With root user I restarted my VM and started everything from scratch just in case. I logged in with root and executed the following command in a Terminal...
...and this is the startup log...
Then I opened a new terminal and set the ...then I executed
In this case there was no cert permission issue, but I still got a certificate verification error. Below you may find the output of the original Terminal window where I started Xpra... I'm a bit loss at this point. I'm trying to follow your instructions but it does not work because of some reason. Sorry if I miss something obvious. Thanks, |
XPRA_SSL_UPGRADE=0 xpra start --bind-tcp=192.168.1.30:10000 --no-daemon --ssl=no Then XPRA_SSL_UPGRADE=0 xpra attach tcp://192.168.1.30:10000/ Or even: xpra attach tcp://192.168.1.30:10000/ --ssl-server-verify-mode=none Also note that |
Thank you totaam. I was out for the weekend, but I will give a try as soon as possible and get back to you with the result. |
Hello @totaam, Following your new instructions with the root user, I still got errors... ...but it started correctly our application at the end... This application is configured in the xpra.conf file. I believe that's why it started with the Could you please let me know what kind of test should I do know? As you may remember, at the beginning of the ticket I described that the copy and paste function works OK if I do this straight from my virtual machine, copying the text to my excel sheet on my notebook. But if I do this from the browser with Xpra, it breaks the formatting and I just get a plain text in my Excel. Thanks, |
How and why?
And that's why you should probably not do that.
How so?
Does this work with the xpra client? (not the html5 client) |
Hi @totaam, So let's start with some background info. We have a Qt based software, running under linux and we use Xpra to be able to access the software via a web browser on port 14500. The
Everything is smooth with these options. Our software mainly works as expected in a browser via Xpra. I have also sent you the content of the xpra.service in one of my previous comment. Our problem is that if I copy a text from our software via Xpra, it only copies a plain text into Excel on our notebook. If I do exactly the same, but not from the browser but straight from the linux virtual machine, it works OK. It keeps all the HTML formatting. That's why I reported this ticket. Since I'm not an expert, I just tried to follow your instructions, using the linux virtual machine where our software and Xpra is sitting. It's a LAB (test) environment actually. So I was following the instructions and at the end I could use the commands suggested by you (with root), but that's just started the software which is configured in our xpra.conf file. On this way it does not work properly, I cannot open the menus, the buttons are blinking, etc... I just really would like to find the way to be able to copy and keep the formatted text from a browser via Xpra. Thanks, |
You are still not testing with the current version. |
Hi @totaam, Finally I managed to work this... The problem was that when I executed the
...and below is the output...
Then in an other terminal with my OS user I attached to the session with...
...and below you may find the output...
This started our software and I could do the requested test. I copied the text... ...and pasted into Excel... All looked OK. After that I connected from browser to the session which attached to the previously started session on the server... I also copied the same text, but this time via browser and it just copied the plain text... So it seems the problem is with the html5 client. I know that v5.0.2 is not the latest one. If you want, I will update Xpra later and I will re-do these tests. Thanks, |
Hi @totaam, Sorry, I thought I still have something to do before I go with the beta binaries. So what I did... 1.) I configured the Xpra Rocky Linux 8 beta repository on my VM....
2.) Then I executed the dnf xpra ugprade command...
3.) At this point I restarted the VM
5.) Because of the error message I installed xpra-x11...
6.) I restarted the server again
...and here is the startup log....
8.) After that I used Brave browser on my machine and accessed Xpra like this... 9.) After the log in, I accepted and enabled the Clipboard 10.) Then I copied the necessary data from the HTML table... ...but when I tried to paste the data into my Excel, I got some kind of garbage data... Did I miss something? Thanks, FYI: If I run the application straight on the server I could copy the data properly into my excel... |
How did you copy to the clipboard? Also, it doesn't look like you have an updated If that's not the cause then it is possible that Excel needs a different mimetype. I will look into why |
Ctrl + A, then Ctrl + V, then trying to pate with Ctrl + V.
Yes.
I'm not sure what does pointer events mean. Do you need any further tests from me now? |
The pointer is usually driven by the mouse device.
Yes, please try with the updated |
Hello @totaam, Many thanks for your feedback! So I just have to Thanks, |
Yes, make sure that |
Hi @totaam, I'm happy to confirm that with the latest xpra-html5 upgrade the Copy & Paste function works OK and keeps the formatting as expected.... Will you keep these binaries in the beta repository? I would like to do the same upgrade in the production environment soon. Many thanks in advance, |
For a little while. The beta repository is refreshed fairly regularly.
I would avoid running beta releases in production. Now that you have confirmed that the fixes work, I will try to make new releases of |
Hi @totaam, Many thanks for your feedback. Could you please let me know as soon as it's available in the official build? Thanks in advance, |
Unfortunately people are now complaining that they get html formatted data instead of plain text (#283)... So now I will have to add a toggle to get the old behaviour back. |
Hello Antoine (@totaam), I'm writing to you at this ticket because earlier this week I found the time to test this newly implemented feature with the xpra and xpra-html5 upgrade from the official Rocky Linux 8 repository. I did my tests again, the same what I did after the upgrade from the beta repository. Unfortunately it seems it does not work now.... As you can see on the screenshot about, the copying still works without the formatting of the text (left side in the excel file). Do you think I missed something during the upgrade? I simply used the Below you may find the repo details...
Thanks, |
@mykeebot which exact version do you have installed? |
Hello @totaam, Below you may find the result...
Thanks, |
@mykeebot that's not up to date, try refreshing the repo: |
Hi @totaam, I did not know that I have to refresh the repo on server side. I thought if the content of the repository is refreshed, then with an The version looks better now... ...but the formatted copy still does not work... Do you have any other tips maybe? Thanks, |
Looks like it's missing v11 of the HTML5 client: https://github.com/Xpra-org/xpra-html5/releases/tag/v11.0 |
Many thanks for your feedback! Please do let me know if there is any update on that! |
@mykeebot try now, I've released 11.1 with a few extra fixes. |
Hello @totaam, I ran the
Now, after I enter my username and password, the loading gets stuck at this point... I can see a time out message on the server... Do you think it's because of the upgrade? Thanks, |
This is not a valid dnf command. You seem to be connecting to the proxy server. It could well be an SSL problem - is your SSL certificate valid? |
Sorry, I mean I started xpra with: Then it started OK and I could log in via browser on the If I started xpra with Before the xpra and xpra-html5 upgrade it worked with the following version...
...that's why I thought that something went wrong with the upgrade. Thanks, |
Hello @totaam, I upgraded xpra and xpra-html5 again because of on other request (file download option), so now I have the following versions on my VM (server)...
Xpra starts OK with the server...
I can reach the Xpra site... However when I try to log in... ...I get this all the time... If I enter the root password, it redirects me to the original Log In page.... I have this in the /var/log/messages file....
Do you know what could be the problem? Thanks, |
@mykeebot looks like you're starting your session on port 10000 but then connecting to port 14500, which is the proxy server. In any case, I don't think that this belongs in this ticket. This is a different issue. |
Hi @totaam, Starting xpra with port 10000 was in my previous comment in it was a different login issue. However in my last comment I followed a scenario with port 14500 and I connected to it via browsers as you can see on the screenshots and in the logs. You are right, it's a different issue, but I added these here because the fix came with the upgrade from the stable repo, but I could not test it because of this problem. I will create a separated ticket against this issue. Thanks, |
FYI: the upcoming release will default to Longer term, a better solution is #305 |
Describe the bug
Copy and Paste does not work properly via Xpra, it just copies plain text instead of the formatted text
System Information:
Server OS: Rocky Linux release 8.8 (Green Obsidian)
Client OS: Windows 10 Home 22H2
Xpra Client Version: 9.0
Xpra Server Version....
I have a Rocky 8 VM where our software is sitting and we can access it via Xpra, it works well. My problem is that it seems Xpra ruins somehow the formatted text what I would like to copy from the server (Xpra) to my notebook (windows client) to Excel.
This is the table what I would like to copy...
...and it looks as follows if I copy this straight from the Virtual Machine to my Excel sheet...
As you can see above, it kept the formatting. And this is how it looks if I copy the same info from a browser from Xpra...
As you can see it just copies the plain text, however I would need the formatted text.
Could you please let me know if there is any solution for my problem?
Many thanks in advance,
Mike
The text was updated successfully, but these errors were encountered: