LibVNC / x11vnc

a VNC server for real X displays
GNU General Public License v2.0
723 stars 142 forks source link

Copy-Paste issues #87

Open codegeek182 opened 5 years ago

codegeek182 commented 5 years ago

Hi,

I suspect there's a bug in x11vnc in transferring data when pasting text to a session. My knowledge in x11vnc is not deep enough so if you can please help me in this issue it will be really helpful. I'm using x11vnc in order to view a rdp session with xfreerdp. For some unknown reason I can't paste text from the host machine into the session. When I try to simply copy and paste text from the machine into it self, it works well. I used python 2 on Ubuntu 18.04, ran gtk.wait_for_targets() and pasted inside the machine I received the wanted result - all the possible types (such as text/plain, STRING, TEXT, UTF8_STRING…): Import gtk a = gtk.clipboard_get() a.wait_for_targets()

But when I connect to the machine with x11vnc, and then I try to paste text from the host machine, nothing is pasted, and when I run gtk.wait_for_targets() I get None as a result. Do you have an idea what can cause it?

Thanks, Tomer

bk138 commented 5 years ago

I'm having trouble understanding the basic setup :-) It's you -> vnc viewer -> x11vnc ?? xfreerdp?

codegeek182 commented 5 years ago

I'm using JavaScript library NoVNC as a viewer, x11vnc which acts as a vnc server against Xvfb display which runs in the background, and xfreerdp which is running in the xvfb and acting as a client to a remote machine (it is basically a web-RDP gateway)

oreaba commented 2 years ago

I am having the same issue. I can copy from server to client but I can not copy from client to the x11vnc server.

elirag commented 2 months ago

should be fixed by https://github.com/LibVNC/x11vnc/pull/255