LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   x11vnc and vncviewer - clipboard transfter (https://www.linuxquestions.org/questions/linux-software-2/x11vnc-and-vncviewer-clipboard-transfter-548488/)

arobinson74 04-23-2007 11:25 PM

x11vnc and vncviewer - clipboard transfter
 
I cannot get clipboard transfer working with vncviewer and x11vnc. I am able to transfer the clipboard selection from the server to the client but not vice-versa. I started x11vnc with these options to try to debug:
Code:

/usr/bin/x11vnc -xrandr -nobell -rfbauth .vnc/passwd -input KMBCF -debug_sel
When I tried to copy something on the client, this is what I got on the server:
Code:

23/04/2007 22:14:56 selection_send: event PRIMARY  prop: 77  requestor: 0x800035  atom: 1
selection_send: data: '(null)' dlen: 0 nitems: 0 ba: 0
23/04/2007 22:14:56 selection_send:  PRIMARY  ''
23/04/2007 22:14:57 request PRIMARY

When I tried to transfered data from the server to the client it worked:
Code:

23/04/2007 22:18:13 selection_send: event PRIMARY  prop: 31  requestor: 0x800035  atom: 1
selection_send: data: 'selection_send:' dlen: 15 nitems: 15 ba: 0
23/04/2007 22:18:13 selection_send:  PRIMARY  'selection_send:'
23/04/2007 22:18:13 selection_send:  no change.
23/04/2007 22:18:14 xcut_receive: 'selection_send:'
23/04/2007 22:18:14 xcut_receive: recv-ing it.
23/04/2007 22:18:14 Own PRIMARY.
23/04/2007 22:18:14 Own CLIPBOARD.
23/04/2007 22:18:14 Set PRIMARY  'selection_send:'
23/04/2007 22:18:14 Set CLIPBOARD 'selection_send:'

Then when I attempted once again to transfer the other way, I got a different output:
Code:

23/04/2007 22:18:14 CLIPBOARD  request event:  owner=0x800035 requestor=0x18000f1 sel=281 targ=492 prop=491
Any ideas on why this isn't working?

x11vnc: 0.8.2 lastmod: 2006-07-12
VNC Viewer Free Edition 4.1.1 for X - built Feb 26 2007 20:38:07
(RealVNC)

I also tried tight VNC viewer with no luck

Both computers are Debian Lenny (Testing) running Xfce 4.4

nicorac 06-01-2007 07:09 PM

Hi there.

I'm experiencing the same problem... did you sort it out?

arobinson74 06-02-2007 08:49 AM

No, unfortunately it is still broken

arobinson74 11-09-2007 12:46 PM

Update -- I talked to the author of x11vnc and he made changes to the current development version. A few programs still have issues, but it works for the most part

Workaround the works reliably:
  1. Install a clipboard manager on the client and the server*
  2. Copy the text on the client
  3. Re-select the text using the clipboard manager
  4. On the server, re-select the text using the clipboard manager
  5. Paste into any program on the server

* these all seem to work:
  • xfce4-clipman-plugin (xfce)
  • klipper (kde)
  • glipper (gnome)

The problems are in both the viewer and x11vnc. There are multiple ways to handle clipboard communication in linux apparently and each program may use one of the ways. The vnc viewer and x11vnc are not yet handling all the ways.


All times are GMT -5. The time now is 02:12 AM.