zsh-system-clipboard icon indicating copy to clipboard operation
zsh-system-clipboard copied to clipboard

`xclip -in` keeps running after zsh exits and never dies unless killed manually

Open cronyakatsuki opened this issue 3 years ago • 4 comments
trafficstars

After doing any action in zsh vi mode like copy, paste it makes it so that when running exit zsh just hangs there and won't exit until killed.

Using xclip if it matters.

cronyakatsuki avatar Nov 15 '22 15:11 cronyakatsuki

I too noticed the command xclip -sel CLIPBOARD -in hangs when the process exits. It seems like an issue with xclip.. I'd switch to xsel, or wayland if I could.

doronbehar avatar Nov 18 '22 06:11 doronbehar

I have xclip and xsel installed at the machine at the same time, because of dependencies of some of my program.

Maybe make it so that xsel is prioritized over xclip if they are both found to be installed at the same time?

For now I will just use ZSH_SYSTEM_CLIPBOARD_METHOD=xsc to bypass the issue.

cronyakatsuki avatar Nov 18 '22 20:11 cronyakatsuki

Should we close the issue now and have a mention that if zsh hangs users should install xsel in the readme now?

cronyakatsuki avatar Nov 19 '22 11:11 cronyakatsuki

Should we close the issue now and have a mention that if zsh hangs users should install xsel in the readme now?

I'd appreciate a PR to the README linking to this issue, but I wouldn't close this issue.

doronbehar avatar Nov 19 '22 11:11 doronbehar