SetText hangs indefinitely on LinuxSee original GitHub issue
I’m not sure how no-one has noticed this yet, but here it is…
Since #137 was merged, the bashrunner xclip process (when calling
SetText) never returns until copying something to the clipboard (e.g. pressing
This is expected behavior since the xclip
-loops option is set to
0 by default and xclip does not close stdout.
From the man page:
-l, -loops number of X selection requests (pastes into X applications) to wait for before exiting, with a value of 0 (default) causing xclip to wait for an unlimited number of requests until another application (possibly another invocation of xclip) takes ownership of the selection
The solution seems to be adding
-loops 1 to the command, but I’m not sure if this creates other problems…
A different solutions is using
xsel since it immediately closes stdout after forking.
- Created 3 years ago
- Comments:10 (2 by maintainers)