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

False read from a previous write and segmentation fault on a second read #113

Open
changkun opened this issue Jan 25, 2021 · 0 comments
Open

Comments

@changkun
Copy link

Version: 11cba613840b0d0e76dc2ea6d4ec7cc5f23daf88

$ echo test > x.txt
$ cat x.txt
test
$ cat x.txt | xclip -in -selection clipboard
$ xclip -out -selection clipboard -t image/png
test
$ xclip -out -selection clipboard -t image/png
[1]    619206 segmentation fault (core dumped)  xclip -out -selection clipboard -t image/png

Version 0.13:

$ echo test > x.txt
$ cat x.txt
test
$ cat x.txt | xclip -in -selection clipboard
$ xclip -out -selection clipboard -t image/png
test
$ xclip -out -selection clipboard -t image/png
test

Explaination:

The -t option does not work with -in when specifying inputs.
An input by default as text but can be read as image/png TARGET.

Expect:

$ echo test > x.txt
$ cat x.txt
test
$ cat x.txt | xclip -in -selection clipboard
$ xclip -out -selection clipboard -t image/png
Error: target image/png not available
$ xclip -out -selection clipboard -t image/png
Error: target image/png not available
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