Smithay / smithay-clipboard

Provides access to the wayland clipboard for client applications
MIT License
29 stars 12 forks source link

Allow text/plain text type without charset parameter #45

Closed lukaslihotzki closed 1 year ago

lukaslihotzki commented 1 year ago

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.

kchibisov commented 1 year ago

See #49.