Open ngn13 opened 1 year ago
user@host~# python3 >>> import pyperclip >>> pyperclip.copy("test") >>> exit() user@host~# exit (terminal hangs)
xclip -selection c still runs in the background after copy_xclip() function, which prevents the terminal from exiting. I think adding something like
xclip -selection c
copy_xclip()
subprocess.call(["killall", "xclip"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
would solve the problem.
xclip -selection c
still runs in the background aftercopy_xclip()
function, which prevents the terminal from exiting. I think adding something likewould solve the problem.