Closed Rush-iam closed 2 months ago
Caused by #273
Unlike most real operating systems, we have no way of knowing what mimetype the application receiving the keyboard data actually wants.
I don't think that we can set both text/html
and text/plain
either - but it's worth a try.
The short term fix will be to add a configuration option on the connect page.
We can set both text/html
and text/plain
by providing multiple ClipboardItem
s and the application can then choose what it wants to use.
This will only work for browsers that implement Clipboard.write
, so this would work for chrome but not Firefox < 128 or Safari, see https://github.com/Xpra-org/xpra-html5/issues/301#issuecomment-2109269862
So we should probably still allow the html5 client to specify the preferred format - and default to text/plain
?
This will require a server-side change too: https://github.com/Xpra-org/xpra/issues/4228
Now working again for text/plain
which is the default again.
This can be changed using the advanced options:
@totaam I'm on the latest version of xpra and I don't see this option. I assume it hasn't been released yet?
I will have to set the format to text/plain
by default. Could you please let me know how I can set this in xpra.conf
?
@heinosasshallik text/plain
will be the new default.
When you copy text from a browser page into a buffer - it usually includes some kind of hidden formatting.
With v11 (I upgraded from v9.1), when you press
Ctrl+V
such text is pasted in an Xpra Client application with all formatting HTML tags.E.g., I copy the word
Assignees
from the current issue page and paste it into any application in Xpra Client withCtrl+V
and get not the wordAssignees
but: