meskarune / i3lock-fancy

i3lock script that takes a screenshot of the desktop, blurs the background and adds a lock icon and text
MIT License
1.52k stars 184 forks source link

i3lock-fancy doesn't work with newest scrot #150

Closed lisuml closed 5 years ago

lisuml commented 5 years ago

Since upgrading scrot from 0.9.1.1 to 1.1.1.1, i3lock-fancy, when ran with scrot command, throws the following error:

$ i3lock-fancy --nofork -p -- scrot
convert: improper image header `/tmp/tmp.geDncHrd6j.png' @ error/png.c/ReadPNGImage/4293.
convert: no images defined `txt:-' @ error/convert.c/ConvertImageCommand/3273.

Downgrading scrot to 0.9.1.1 fixed the issue.

shiroyk commented 5 years ago

In scrot stable 1.0 version, by default do not overwrite the file. You can add option -o to overwrite file.

i3lock-fancy -p -- scrot -z -o

oryband commented 5 years ago

This should probably go to the front README

lisuml commented 5 years ago

Thanks, it seems to be working.