VNC clipboard transfer / Windows clipboard issues
by z3n on Oct.02, 2009, under Linux Happyness, Tips & Hints
Problem:
Windows clipboard stop working from nothing;
Windows <=> VNC (unix) not working;
Using alternate copy/paste keys/methods (ctrl/shift + insert, ctrl+x/v/c) will not help;
Solution:
vncconfig must be open on vnc server client
vncviewer must be configurated to allow clipboard transfers
If you are using Xvnc the default options for the server is to allow clipboard transfers, although you might want to check your config file to make sure it’s right (check man page link below).
You can also install autocutsel to check the debug and make sure it’s working.
On windows you might fall into clipboard issues, cleaning the clipboard at `clipbrd.exe` might not resolve the issue, sometimes a program keeps the clipboard handler open, making impossible to write data. There’s a little this program that detects that. You may also get the source code for it at code project link below.
Fun:
During the research on this, someone suggested that windows clipboard is a service and that by restarting it you would fix the problem.
Sources: