YaLTeR / wl-clipboard-rs

A safe Rust crate for working with the Wayland clipboard.
Apache License 2.0
223 stars 16 forks source link

Make additional text mime types optional #31

Closed OverShifted closed 1 year ago

OverShifted commented 1 year ago

Fixes a little "bug" in my clipboard manager which made it offer plain text mimes when copying images (because of text/html) which in turn caused some weirdness in some programs.

YaLTeR commented 1 year ago

which made it offer plain text mimes when copying images (because of text/html)

How does this work, why do images have text/html type?

OverShifted commented 1 year ago

Sorry, I should've mentioned that this issue happens specifically when copying from Firefox. For some reason, Firefox copies the img tag's HTML code as text/html. When my clipboard manager tries to restore it, other mime types such as text/plain will be generated by wl-clipboard-rs which causes some programs to paste the HTML code (either instead, or alongside the actual image).

OverShifted commented 1 year ago

Why rustfmt is giving errors on files I haven't modified when I run it locally, while it seems to be fine?

YaLTeR commented 1 year ago

Why rustfmt is giving errors on files I haven't modified when I run it locally, while it seems to be fine?

Are you using nightly? This project uses unstable rustfmt options.

YaLTeR commented 1 year ago

Thanks!