You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to put some text into clipboard in text/plain format only, i.e. without the TEXT, STRING and UTF8_STRING formats also used for it by default, but it seems that --type text/plain is ignored in this case and all the other types are still added:
Hi, this was very intentional. As you note, --type is not ignored, but we additionally offer generic text formats if the type you specify with --type looks textual; without this, many clients will refuse to paste your data.
Why is this an issue for you / what are you actually trying to achieve?
Hi, this was very intentional. As you note, --type is not ignored, but we additionally offer generic text formats if the type you specify with --type looks textual; without this, many clients will refuse to paste your data.
I see, thanks. Maybe there could be some --force-type option to still do what I want? But it's probably too niche...
Why is this an issue for you / what are you actually trying to achieve?
I'm testing one of such broken clients :-) and I need to be able to put text on clipboard without providing it as [UTF8_]STRING to trigger the bug. It can be done manually by copying text from Nautilus but wl-copy is just so much more convenient to use (thanks a lot for this great tool, BTW!). And I was also thinking of adding a non-interactive test checking that pasting text in any format works and for this I could only use wl-copy.
I'd like to put some text into clipboard in
text/plain
format only, i.e. without theTEXT
,STRING
andUTF8_STRING
formats also used for it by default, but it seems that--type text/plain
is ignored in this case and all the other types are still added:This looks to be trivial to fix, as it would be enough to change the condition in this line
https://github.com/bugaevc/wl-clipboard/blame/4f20741f66c4e9bcf45481e941e344f8fe5e998d/src/wl-copy.c#L298
or just make it an
else
like this:but I don't make a PR for this as I'm not sure if this is not intentional. If you'd like one, please let me know.
The text was updated successfully, but these errors were encountered: