Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy-Paste issues #87

Open
codegeek182 opened this issue Jan 27, 2019 · 5 comments
Open

Copy-Paste issues #87

codegeek182 opened this issue Jan 27, 2019 · 5 comments
Labels

Comments

@codegeek182
Copy link

codegeek182 commented Jan 27, 2019

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
Copy link
Member

bk138 commented Feb 9, 2019

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

@codegeek182
Copy link
Author

codegeek182 commented Feb 10, 2019

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)

@bk138 bk138 added the bug label Jul 3, 2019
@oreaba
Copy link

oreaba commented Aug 4, 2022

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
Copy link

elirag commented Sep 10, 2024

should be fixed by #255

@tycho-kirchner
Copy link

@elirag Thanks for the PR. I tried the patch, but for me I still can't copy from client to server (the other way works). I'm using xtigervncviewer tunneled through ssh in -listen mode, both systems run Xfce under Debian Bookworm:

xtigervncviewer -listen $vnc_port &
sleep 1
# -noxdamage s. https://github.com/LibVNC/x11vnc/issues/154
# -auth guess
ssh -T -o ConnectTimeout=12 -R $vnc_port:localhost:$vnc_port \
      "DISPLAY=:0 x11vnc -q -clear_keys -noxdamage -repeat -nopw -connect_or_exit localhost:$vnc_port"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants