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

Make xsel preferred over xclip. #117

Merged
merged 1 commit into from
May 29, 2018
Merged

Conversation

modax
Copy link
Contributor

@modax modax commented Jan 26, 2018

It seems to be less buggy.
See #116 (comment)

Closes #116

@asweigart asweigart merged commit db5cec7 into asweigart:master May 29, 2018
@chocolateboy
Copy link

As mentioned here, xclip isn't "buggy" if used correctly.

Demoting it is a sticking plaster on platforms which have both, and doesn't fix #116 on platforms which only have xclip.

In addition, xsel launches a process in the background (i.e. a daemon) and provides no way to disable that behavior which works in a pipeline, whereas xclip -filter doesn't have any such surprises/side effects.

xsel

$ echo OK | xsel --clipboard --input

$ pgrep xsel > /dev/null && echo "running"
running

$ echo OK | xsel --clipboard --input --nodetach
<hangs>

xclip

$ echo OK | xclip -selection clipboard -filter
OK

$ pgrep xclip || echo "not running"
not running

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

Successfully merging this pull request may close these issues.

3 participants