-
Notifications
You must be signed in to change notification settings - Fork 74
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
Error: target STRING not available #87
Comments
Hi! I don't know how MacOS's clipboard integrates with the X selection, but I seem to recall there was an option to synchronize them in the MacOS X server. Have you looked into that? It's also possible for STRING to not be available, although that seems unlikely if you've been copying text. Would you please run this and let us know what the output is:
As for -loops, it only counts the number of paste requests. When you do a copy with another X application, as you were doing, xclip is supposed to quit even if the number of loops hasn't changed. The fact that it doesn't makes me suspect there is something weird going on with MacOS's clipboard integration with X. |
@baditaflorin Did you get it figured out? |
unfortunately no, I did not manage yet to play with it too much.
|
Oh, I forgot with the older release of xclip that brew likely has, you need to include -o or it will read from stdin. Please try,
|
PR #142 might help here. I noticed that some applications require |
While investigating an xclip issue elsewhere I also stumbled upon this bug report.
I suspect this is because the console does not offer any kind of 'targets' to xclip.
|
I'm getting this error when trying to run xclip in MacosX, using
brew install xclip
Also tried this but will never increment even if I do right click copy or Command C to copy to clipboard
xclip -loops 10 -verbose $(pwd)/file.txt
Loops: 10
Connected to X server.
Using UTF8_STRING.
Reading /Users/florin/Coding/LINUX/file.txt...
Waiting for 10 selection requests, Control-C to quit
Waiting for selection request 1 of 10.
The text was updated successfully, but these errors were encountered: