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

copy_xclip hangs the terminal when you try to exit #247

Open
ngn13 opened this issue Jun 21, 2023 · 0 comments
Open

copy_xclip hangs the terminal when you try to exit #247

ngn13 opened this issue Jun 21, 2023 · 0 comments

Comments

@ngn13
Copy link

ngn13 commented Jun 21, 2023

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

subprocess.call(["killall", "xclip"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)

would solve the problem.

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

No branches or pull requests

1 participant