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

application/x-zerosize detected when copying from stdin #148

Open
shlevy opened this issue Sep 23, 2022 · 3 comments
Open

application/x-zerosize detected when copying from stdin #148

shlevy opened this issue Sep 23, 2022 · 3 comments

Comments

@shlevy
Copy link

shlevy commented Sep 23, 2022

$ wl-copy --version
wl-clipboard 2.1.0
Copyright (C) 2019 Sergey Bugaev
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

$ wl-copy foo 2>arg.txt # arg.txt attached

$ WAYLAND_DEBUG= wl-paste -l
UTF8_STRING
STRING
TEXT
text/plain;charset=utf-8
text/plain

$ echo foo | wl-copy 2>stdin.txt # stdin.txt attached

$ WAYLAND_DEBUG= wl-paste -l
application/x-zerosize

arg.txt
stdin.txt

This breaks e.g. password-store when pasting in a graphical application (though wl-paste does find the clipboard contents)

@YaLTeR
Copy link
Collaborator

YaLTeR commented Sep 23, 2022

Hm, seems weird. For now I guess password-store could set a text MIME type explicitly? Sounds like a good idea either way in case a password happens to match some ASCII format.

@shlevy
Copy link
Author

shlevy commented Sep 23, 2022

@b-m-f
Copy link

b-m-f commented Oct 17, 2022

Hm, seems weird. For now I guess password-store could set a text MIME type explicitly? Sounds like a good idea either way in case a password happens to match some ASCII format.

This works. E.g -t 'text/plain'

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

3 participants