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

Option to limit Clipboard to Text only #101

Open
W4RH4WK opened this issue Jul 22, 2018 · 9 comments
Open

Option to limit Clipboard to Text only #101

W4RH4WK opened this issue Jul 22, 2018 · 9 comments
Labels
enhancement New feature or request

Comments

@W4RH4WK
Copy link

W4RH4WK commented Jul 22, 2018

I just noticed the cursor bugging out when moving between screens (hosts).
Based on the info / debug output: my clipboard contains an image, which Barrier tries to convert, for whatever reason. As soon as I copied some text into the clipboard everything was back to normal.

While I certainly like the feature of image-based clipboard-sharing, maybe a switch for limiting clipboard-sharing to text only would be nice.

@gelldur
Copy link

gelldur commented Oct 11, 2018

Same here also same on old Synergy. When I make screenshot via eg. xfce4-screenshooter then I copy to clipboard everything "hangs" (I don't see mouse and keyboard doesn't respond). Only can switch to other TTY and kill app to get back control.

@AdrianKoshka AdrianKoshka added the enhancement New feature or request label Oct 11, 2018
@p12tic
Copy link
Member

p12tic commented Oct 13, 2018

I've observed something similar too. Seems that whenever clipboard has a lot of data and the cursor moves between screens all the data is transferred synchronously causing jitter. This is especially noticeable on slower connections like wifi.

@ghost
Copy link

ghost commented Apr 28, 2019

This is crashing my server, would really appreciate if someone could do this.

@GwylimWilliams
Copy link

GwylimWilliams commented May 9, 2019

I am also having trouble with this but it would be preferable to fix the issue with "large" data in the clipboard crashing/hanging the server please.

Server and client are both xubuntu.

@ghost
Copy link

ghost commented Nov 14, 2019

I had to disable clipboard in the barrier config at work (since I work with images a lot) because the server swelled to 200-400mb of ram and finally froze my input completely several times forcing me to switch tty to kill it. Don't ask how many times it took me to figure that out..
In newer synergy there is a setting for limiting clipboard size which I would really appreciate to be added to barrier, thanks!

@SamantazFox
Copy link

AFAIK, the clipboard is already "text-only". It is defined as a string in the source code:
https://github.com/debauchee/barrier/blob/master/src/lib/barrier/Clipboard.cpp#L114

Based on my experience using barrier, it seems to copy anything in the clipboard, up to the first NUL character (0x00), which doesn't allow to copy PNGs, for instance.

@zgxsin
Copy link

zgxsin commented Apr 30, 2021

AFAIK, the clipboard is already "text-only". It is defined as a string in the source code:
https://github.com/debauchee/barrier/blob/master/src/lib/barrier/Clipboard.cpp#L114

Based on my experience using barrier, it seems to copy anything in the clipboard, up to the first NUL character (0x00), which doesn't allow to copy PNGs, for instance.

Is there any way to enable image-supported clipboard sharing?

@jduemes
Copy link

jduemes commented Apr 30, 2021

I would like that barrier had an option for clipboard that could be named: "Only text (no formatting)" or something, Since some application simply do not understand CTRL+Shift+V to paste text without format.

@Delwin9999
Copy link

On that same note I've found that copying something out of google docs, switching machines, and pasting it into slack it loses formatting. Doing that on the same machine it keeps formatting.

I'm guessing there's a null character separating text from format in the clipboard? I'll look into this myself but I just wanted to note it here.

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

9 participants