-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Support MIME type text/html in the clipboard #3056
Comments
Apologies if this is a known issue, couldn't find any mention of formatting when searching issues related to clipboard. |
Welcome back @vscfreire I imagine we don't support the particular format the text is being transferred in at the moment. I'm on a Linux Mint machine. If I visit https://www.mozilla.org/en-US/privacy/firefox/ (as in your example above), select the first three paragraphs and copy them, I've got the following formats on the clipboard:- $ xclip -selection clipboard -o -t TARGETS TIMESTAMP TARGETS MULTIPLE SAVE_TARGETS text/html text/_moz_htmlcontext text/_moz_htmlinfo UTF8_STRING COMPOUND_TEXT TEXT STRING text/plain;charset=utf-8 text/plain text/x-moz-url-priv I'm guessing we need to support If I do the following:- $ echo '<h1>This is a test</h1>' | xclip -selection clipboard -i -t text/html $ xclip -selection clipboard -o -t TARGETS TARGETS text/html and past into LibreOffice (same machine), I get a heading. Can you try this on your Linux machine:-
Than paste on the Windows side and see what happens? |
Thank you, and thanks to the entire xrdp team for your continuous hard work.
I had a cursory look at FreeRDP's clipboard code to compare, and I think it's exactly this that's missing.
This is what I get when I run the commands in a Linux session in xrdp:
When I paste it into LibreOffice (same machine) I get a heading. If I try the same commands in a xfreerdp - Windows Server session, I get headings both in Linux and Windows apps. |
Thanks for the confirmation @vscfreire I've remarked this as an 'enhancement' now. |
xrdp version
0.9.25
Detailed xrdp version, build options
Operating system & version
Rocky Linux 9
Installation method
dnf / apt / zypper / pkg / etc
Which backend do you use?
Xvnc
What desktop environment do you use?
Xfce
Environment xrdp running on
VM
What's your client?
No response
Area(s) with issue?
Clipboard
Steps to reproduce
And the other way around:
✔️ Expected Behavior
Text stays the same between copy and paste.
❌ Actual Behavior
Text loses all formatting when pasted.
Anything else?
No errors in the xrdp logs or the chansrv/Xvnc logs in the user home.
Included screenshot showing text copied from Firefox remotely and pasted to Word locally:
For what it's worth, I can copy/paste formated text if using xfreerdp connected to a Windows Server, so it seems that both X11 and the RDP protocol support storing formated text in the clipboard, it's just being lost somewhere in xrdp.
The text was updated successfully, but these errors were encountered: