sentriz/cliphist

Image files not copying/decoding correctly

savedra1 opened this issue · 1 comments

Hi,

When I use the command cliphist list | rofi -dmenu | cliphist decode | wl-copy and select the binary file from the rofi menu, it only pastes as a string-format bytes that look like �PNG �� IHDR���z����������叢��...(20k ish more chars likethis)....��Ef����IEND�B� . I'm thinking this is more related to the wl-clipboard lib as using the command wl-copy < image.png directly in the terminal gives me the same result.

Just curious if you know exactly what the issue could be? It's maybe just an issue with my local machine's stdin/out encoding (NixOs, Ryzen, alacritty)..

thanks!

Closing this as found my answer in the wl-clipboard issue notes: just needs --type image/png added as args after the wl-copy command.