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

tmux uses wl-copy instead of xclip/xsel in X11 environment #719

Closed
orange-ramlius opened this issue Feb 12, 2024 · 5 comments
Closed

tmux uses wl-copy instead of xclip/xsel in X11 environment #719

orange-ramlius opened this issue Feb 12, 2024 · 5 comments
Labels

Comments

@orange-ramlius
Copy link

'"$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
Copy link
Owner

gpakosz commented Feb 12, 2024

Hello @orange-ramlius,

The code currently doesn't look at XDG_SESSION_TYPE to pick wl-copy or xsel or xclip.

@orange-ramlius
Copy link
Author

So I should set it by myself?

@gpakosz
Copy link
Owner

gpakosz commented Feb 12, 2024

Can you please try the gh-719 branch?

@orange-ramlius
Copy link
Author

ok

@orange-ramlius
Copy link
Author

Wow, it works now). Thanks!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants