I installed Lingoes dictionary in Wine. It has a popup translator that is triggered by clipboard change. When I copy or select an item it must translate the word, but in Wine, when I copy or select a word, Lingoes dictionary remains unresponsive as if nothing has been copied. I can paste into Lingoes dictionary through right click context menu then it translates.
How can I enable auto clipboard sync between Wine and X11?
The solution is listed in this thread, namely you need to create registry entry
(some sources suggest
"UsePrimarySelection"="y"
but that has the same effect).For more information refer this post. In particular if you want to copy text from VNC server (e.g. Linux) to VNC client (e.g. Windows), you need to install additionally
autocutsel
and add to~/.vnc/xstartup
something like this:This is needed because historically VNC protocol uses old and deprecated CUTBUFFER (legendary applications like
xterm
support it from those ancient times out of the box), while new applications like Wine use CLIPBOARD by default (switched to PRIMARY with registry option above).autocutsel
should be used to synchronize all these types of buffers.Thanks to dma_ks answer I found a variant that worked for me.
export WINEPREFIX=~/.wine32/
use your defined WINEPREFIXexport WINEDEBUG=fixme-all
In the example I have set it to
1
which defines TRUE. Other valid options, as defined in the source files, arey Y t T 1
n N f F 0
Note1:
WINEPREFIX
must be set to and coincide with the wineprefix on which your application runs, if each app runs on a different prefix you will probably need to modify each oneNote2: HKLM and HKCU are registry key shortcuts for HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER respectively
Note3: You can perform all of this aswell by using the GUI app regedit. You can launch it with
wine regedit
.Details:
Having a look through the source code it appears as wine
HKCU\Software\Wine\AppDefaults\app.exe\X11 Driver\UsePrimarySelection
and returns its assigned value if it existsHKCU\Software\Wine\X11 Driver\UsePrimarySelection
and returns its assigned value if it existsRelated: