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

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

Open
awik32 opened this issue Jan 18, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@awik32
Copy link

awik32 commented Jan 18, 2024

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 awik32 added the bug Something isn't working label Jan 18, 2024
@quackduck
Copy link
Owner

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

@awik32
Copy link
Author

awik32 commented Jan 19, 2024

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

@quackduck
Copy link
Owner

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

@awik32
Copy link
Author

awik32 commented Feb 28, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants