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

x0vncserver does not support clipboard #529

Closed
astrand opened this issue Oct 24, 2017 · 22 comments
Closed

x0vncserver does not support clipboard #529

astrand opened this issue Oct 24, 2017 · 22 comments
Labels
enhancement New feature or request

Comments

@astrand
Copy link
Collaborator

astrand commented Oct 24, 2017

Currently, x0vncserver has no support for sending clipboard changes to the client, or accept clipboard updates from the client.

@CendioOssman CendioOssman added the enhancement New feature or request label Oct 25, 2017
@CendioOssman CendioOssman changed the title x0vncserver does not support clipboard x0vncserver does not support clipboard [$15] Mar 9, 2019
@CendioOssman CendioOssman added the bounty There is a bounty for this issue label Mar 9, 2019
@Racansky
Copy link

Hi,
for x0vncserver I used to run the parameters -SendCutText -AcceptCutText - then my clipboard works in both directions

@CendioOssman
Copy link
Member

I'm afraid that can't be our x0vncserver in that case. This is the complete current code for clipboard handling right now:

void XDesktop::clientCutText(const char* str, int len) {
}

:)

@CendioOssman CendioOssman changed the title x0vncserver does not support clipboard [$15] x0vncserver does not support clipboard [$30] Oct 15, 2019
@TheQuantumPhysicist
Copy link

I thought I found the perfect VNC server... but now this... I seriously can't catch a break with VNC!

@Mannshoch
Copy link

Is that problem still available?

@CendioOssman
Copy link
Member

I'm afraid no one has had a look at this yet.

@ivorob
Copy link

ivorob commented Dec 7, 2020

Hi. Is the bounty active for that issue? I want to try resolve it to start working with project.

@CendioOssman
Copy link
Member

Yes, the bounty is still active so feel free to start hacking. :)

@ivorob
Copy link

ivorob commented Dec 9, 2020

Guys, I am close to provide code to code review. But I have a several questions. Do you have some code style standard? Where can I find it. Sorry for offtopic.

@CendioOssman
Copy link
Member

Sorry, no. You'll have to look at existing files and try to follow the same style.

@mathewng
Copy link

After establishing a connection to X0tigervnc, I launched x11vnc -nofb -clip 4x4+0+0 to synchronise the clipboard.
This works for me.

@markd89
Copy link

markd89 commented Dec 18, 2022

@mathewng can you post more details of your workaround. When I try that x11vnc listens on 5901 and I don't get any clipboard transfer in tigervncviewer. I'm thinking that maybe I need to run a second viewer to get the clipboard transfer?

@ivorob how are you doing with your code? You may be able to find something in the x11vnc source code that you can modify to add to x0vncserver. I would be willing to add to the bountysource if you could get this done soon.

@mathewng
Copy link

mathewng commented Dec 20, 2022

@mathewng can you post more details of your workaround. When I try that x11vnc listens on 5901 and I don't get any clipboard transfer in tigervncviewer. I'm thinking that maybe I need to run a second viewer to get the clipboard transfer?

@ivorob how are you doing with your code? You may be able to find something in the x11vnc source code that you can modify to add to x0vncserver. I would be willing to add to the bountysource if you could get this done soon.

Yes, you are right.

My script to launch vnc server goes roughly like this
It works though there is a noticeable delay in the clipboard syncing when copying and pasting. not copy & paste but copy, wait and paste

SSH_CLIENT=...

# For display
x0tigervncserver \
-display :0 \
-localhost yes \
-useold

echo starting clipboard sync in 20 seconds
sleep 20

# For clipboard sync
sudo /usr/bin/x11vnc \
-display :0 \
-auth "${DISPLAYMANAGER_AUTH}" \
-noipv6 \
-connect_or_exit "${SSH_CLIENT%% *}:5500" \
-users meofcourse \
-nopw \
-noremote \
-nocmds \
-xrandr resize \
-xinerama \
-nomodtweak \
-clear_mods \
-skip_lockkeys \
-once \
-noxfixes \
-cursor_drag \
-repeat \
-allinput \
-bg \
-nofb \
-clip 4x4+0+0

I connect to x0tigervncserver for display
and have vncviewer in listen mode ready for x11vnc to connect to it

@wanderling
Copy link

Putting my money where my mouth is. Added $20 to this bounty. Bounty now $50

@CendioOssman CendioOssman changed the title x0vncserver does not support clipboard [$30] x0vncserver does not support clipboard [$50] Feb 23, 2023
@ValkaTR
Copy link

ValkaTR commented Apr 15, 2023

Putting my money where my mouth is. Added $20 to this bounty. Bounty now $50

+ $25

@CendioOssman CendioOssman changed the title x0vncserver does not support clipboard [$50] x0vncserver does not support clipboard [$75] Apr 20, 2023
@mvalley21
Copy link

I also threw $25 into the bounty pot. This would be a useful feature for many.

@mvalley21
Copy link

BTW, my workaround for now is using this program on the client and server: https://github.com/megahertz/clipboard-share

@CendioOssman CendioOssman changed the title x0vncserver does not support clipboard [$75] x0vncserver does not support clipboard [$100] Jul 4, 2023
@CendioOssman CendioOssman changed the title x0vncserver does not support clipboard [$100] x0vncserver does not support clipboard May 30, 2024
@CendioOssman CendioOssman removed the bounty There is a bounty for this issue label May 30, 2024
@bitcoinmeetups
Copy link

I second this. I can't believe it's been 7 years since this post and x0vncserver still can't support copy and paste from connecting unit. Come on.

@bitcoinmeetups
Copy link

bitcoinmeetups commented Aug 29, 2024

How can we even use a vnc program if clipboard is not supported? What is the purpose of the program then? To watch the Terminal from a distance without being able to interact with it normally?

@bitcoinmeetups
Copy link

I also thought I had found the final solution for all the enormous vnc hassle. And then this.

@Skgland
Copy link

Skgland commented Aug 29, 2024

Note that to my knowledge this only applies for the x0vncserver not the x11 plugin (libvnc.so) see "3 Expose the local display directly" or the standalone Xvnc server.

I am currently using the libvnc.so with working copy-paste at work.

@TTimo
Copy link

TTimo commented Aug 29, 2024

Remmina has 'Send clipboard content as keystrokes' which I use as a workaround. For larger pastes I've used cryptpad or a text file on dropbox between systems.

With the whole Linux world moving to wayland I wouldn't hold my breath on seeing this addressed.

@CendioOssman
Copy link
Member

This has now been implemented via #1831. Many thanks to @gujjwal00!

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

No branches or pull requests