open-vm-tools
open-vm-tools copied to clipboard
disable host/guest sharing of "primary" selection
using a windows host and linux guest the current clipboard sharing behavior is problematic.
if you Ctrl-C copy in the windows host and then select text in the linux guest the Ctrl-C copied text gets overwritten.
this seems to be due to the handling of the PRIMARY and CLIPBOARD selection in the dndcp service.
please disable the PRIMARY selection or add a flag to ignore it. conflating the 2 selections when going between host <-> guest is a terrible design.
dndcp feature works both ways, from host to guest and from guest to host, no concept of PRIMARY. You can disable the feature using vmx option: isolation.tools.copy.disable = "true"
ok, i know how it works. it's a terrible design. i'll try to re-illustrate:
- HOST: windows has a SINGLE clipboard access via Ctrl-C/Ctrl-V
- GUEST: linux/xwindows has 2 called PRIMARY (middle mouse button) and CLIPBOARD (Ctrl-C/Ctrl-V)
when working WITHIN linux PRIMARY and CLIPBOARD are managed separately... one does not trash the other.
when switching between guest (linux) and host (windows) the PRIMARY and CLIPBOARD areas trash each other due to the way the current code is written.
test for yourself. in windows Ctrl-C to copy .... switch to linux guest.... select text... hit Ctrl-V.
it will NOT paste the windows copied text because the act of selecting the text is overwriting it.
the design needs to be fixed.