uniclip icon indicating copy to clipboard operation
uniclip copied to clipboard

Bug: uniclip does not gracefully handle alternative forms (eg. an image) of clipboard content

Open awik32 opened this issue 1 year ago • 7 comments

Description of the bug When a picture (and probably other forms of non-text data) gets added to the clipboard, uniclip hangs with the following output:

verbose: [sent: An error occurred wile getting the local clipboard]
error: [exit status 1]
error: [exit status 1]
error: [exit status 1]
...
error: [exit status 1]
^C

Verbose output (Use the --debug option) See above.

Steps to Reproduce For example, you might send a screenshot to the clipboard.

Expected behavior Either print an error message and resume normal operations, or send the non-text data to the clients. Perhaps this should be configurable.

Cheers, Albert.

awik32 avatar Jan 18 '24 12:01 awik32

What OS is this on? If linux, what clipboard utility are you using?

quackduck avatar Jan 18 '24 23:01 quackduck

Yes, the server is Linux (Mint 21.2). If I recall correctly, the clipboard utility is "xclip".

awik32 avatar Jan 19 '24 06:01 awik32

Does the error: [exit status 1] print in an infinite loop? And does this not happen with just regular text?

quackduck avatar Feb 27 '24 21:02 quackduck

Once the error starts printing, it appear to loop endlessly, about once every second, until the the offending content (the image) is removed from the clipboard. There is no error with regular text.

awik32 avatar Feb 28 '24 11:02 awik32

I too am having trouble with images. I tried flameshot and the gnome screenshot tool using xsel. I get text instead of the images. Is there a way around this? I have been using X11 and on Wayland when I copy an image, and paste it in the server it pastes "An error occurred wile getting the local clipboard." This is on Ubuntu 24.04 (both computers). Text works fine.

frohro avatar Oct 28 '24 22:10 frohro

are images (screenshots) even supported? would be a really nice feature to have.

momentmal avatar Jun 10 '25 21:06 momentmal

i can copy/paste text but not images between different computers on the network

if you can sort this out it would be awesome

robina80 avatar Oct 23 '25 12:10 robina80