tmux uses wl-copy instead of xclip/xsel in X11 environment
orange-ramlius opened this issue · 5 comments
orange-ramlius commented
'"$TMUX_PROGRAM" ${TMUX_SOCKET:+-S "$TMUX_SOCKET"} save-buffer - | wl-copy' returned 1
I don't know but for some reason tmux thinks I am running Wayland. I've checked $XDG_SESSION_TYPE and it contains x11. Maybe I hadn't set some variables and because of that it doesn't work?
gpakosz commented
Hello @orange-ramlius,
The code currently doesn't look at XDG_SESSION_TYPE
to pick wl-copy
or xsel
or xclip
.
orange-ramlius commented
So I should set it by myself?
gpakosz commented
Can you please try the gh-719
branch?
orange-ramlius commented
ok
orange-ramlius commented
Wow, it works now). Thanks!)