Issue using Ubuntu on WSL 2
mohamedhaddi opened this issue · comments
Hello! I'm using Ubuntu on Windows Subsytem for Linux, and whenever I try to use xsel
it gives me the following error message:
e.g.:
> cat {{file}} | xsel -ib
will output:
xsel: Can't open display: (null)
: Inappropriate ioctl for device
Does anyone have an idea of what could be causing this?
Super late reply, just noticed this searching for a slightly similar issue 😄
You probably don't have an X server running, or you didn't set the DISPLAY
variable correctly.
This stackoverflow post contains some examples on how to configure DISPLAY variable on WSL
@christianfosli That was probably the reason, I really can't remember it well, and I can't confirm it because I haven't used Windows in a long time, but I hope someone would find this useful! Thank you.