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

On MacOS, cb is trying to run xclip #211

Open
PenelopeFudd opened this issue Dec 20, 2024 · 2 comments
Open

On MacOS, cb is trying to run xclip #211

PenelopeFudd opened this issue Dec 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@PenelopeFudd
Copy link

Describe the bug
I ran brew install clipboard and when I run cb, it initially said "xclip not installed", and after I installed it with brew install xclip now it says "Error: Can't open display: (null)" for most commands. All I wanted to do was copy html-formatted clipboard contents from a file and paste them into Slack, and vice-versa.

To Reproduce

$ brew install clipboard
$ brew install xclip
$ cb paste
Error: Can't open display: (null)
Copied to clipboard: paste
$ cb info
Error: Can't open display: (null)
Copied to clipboard: info

**Expected behavior**
I'm pretty sure it shouldn't be trying to use xclip.

**Screenshots**
If applicable, add screenshots to help explain your problem.
n/a

**Version**
0.10.0

**Additional context**
n/a
@PenelopeFudd PenelopeFudd added the bug Something isn't working label Dec 20, 2024
@Slackadays
Copy link
Owner

I have no idea what could be happening here, as cb doesn't do anything with xclip nor is xclip even useful on macOS. Could it be something with your system, as cb is popular on macs but you're the first to have this issue?

@PenelopeFudd
Copy link
Author

$ which cb

/usr/local/bin/cb

$ ls -la /usr/local/bin/cb

lrwxr-xr-x  1 username  admin  33 19 Dec 17:09 /usr/local/bin/cb -> ../Cellar/clipboard/0.10.0/bin/cb

$ cb
 
Copies a string to the clipboard.
Usage: cb <string>
       echo <string> | cb
 
$ echo string | cb
 
Error: Can't open display: (null)
Copied to clipboard: string

I really can't explain it, other than maybe the Brew Recipe for clipboard has an error of some kind that compiles the Xwindow version.

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