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

Fix fallback to xclip #365

Merged
merged 1 commit into from
Nov 21, 2023
Merged

Fix fallback to xclip #365

merged 1 commit into from
Nov 21, 2023

Conversation

vain
Copy link
Contributor

@vain vain commented Oct 12, 2023

popen() returns NULL if the underlying fork() or pipe() fails, not if the called program didn't run properly. The old code didn't actually fall back to xclip on X11, it was never called.

To fix this, inspect the exit code of the programs that we run. We use the output of the first program that exited cleanly.

CC #363.

popen() returns NULL if the underlying fork() or pipe() fails, not if
the called program didn't run properly. The old code didn't actually
fall back to xclip on X11, it was never called.

To fix this, inspect the exit code of the programs that we run. We use
the output of the first program that exited cleanly.

CC Cloudef#363.
@Cloudef Cloudef merged commit 5b75b2c into Cloudef:master Nov 21, 2023
@Cloudef
Copy link
Owner

Cloudef commented Nov 21, 2023

Thanks!

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.

None yet

2 participants