kfish / xsel

A command-line program for getting and setting the contents of the X selection

Home Page:http://www.kfish.org/software/xsel/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Xsel problem with "tmux"

mehrdad-mixtape opened this issue · comments

Hi, I use ubuntu 22.04
When I open tmux on my terminal and I wanna to use xsel show me this error:

$ hostname | xsel --clipboard --input
xsel: Can't open display: (null)
: Inappropriate ioctl for device

but, when I open a terminal without tmux, xsel is working good

Check your DISPLAY env variable when in tmux ?