bemenu cannot paste after copying from a smithay-clipboard application, because bemenu calls wl-paste -t text/plain and that rejects text/plain;charset=utf-8. For this specific problem, it could be argued that bemenu should add the charset parameter or that type matching inside wl-paste should be relaxed. However, many other applications (Qt, GTK, Chromium, Firefox) offer text/plain also encoded as utf-8 as a fallback to text/plain;charset=utf-8, so this PR does the same for smithay-clipboard.
bemenu cannot paste after copying from a smithay-clipboard application, because bemenu calls
wl-paste -t text/plain
and that rejectstext/plain;charset=utf-8
. For this specific problem, it could be argued that bemenu should add the charset parameter or that type matching inside wl-paste should be relaxed. However, many other applications (Qt, GTK, Chromium, Firefox) offertext/plain
also encoded as utf-8 as a fallback totext/plain;charset=utf-8
, so this PR does the same for smithay-clipboard.