-
Notifications
You must be signed in to change notification settings - Fork 827
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
xclip fails with Error: Can't open display: (null) #4933
Comments
Unfortunately I couldn't get this to work either. My approach was to fall back on this: alias pbcopy="clip.exe"
alias pbpaste="powershell.exe -command 'Get-Clipboard' | head -n -1" More details at #1069 (comment) |
y Tried this: https://www.digitalocean.com/community/questions/copy-ssh-key-to-clipboard |
for now i'm using this as workaround: |
I use |
Not related to Xclip but you want to copy anything on WSL. Use
The content of |
best comment! |
On another note, you can pretty much access many windows services from WSL itself. |
xclip on wsl2 requires xserver and I had corruption with clip.exe. That's why I use utf8clip. See #4852 (comment) |
Yep! |
Your Windows build number: Microsoft Windows [Version 10.0.19041.84]
What you're doing and what's happening:
nothing was copied. instead the following error message appeared:
Error: Can't open display: (null)
What should be happening instead: 111 copied to clipboard and shared in windows as well.
Strace of the failing command, if applicable: https://gist.github.com/sinapis/c63332ce3c8e801d3fb14d65646007ef
I'm trying to make xclip work so I can use 3rd parties programs like micro which rely on xclip to copy the clipboard.
The text was updated successfully, but these errors were encountered: