Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

scrot : giblib error saving to file failed

Tags:

centos7

I have installed Scrot on Centos 7,

giblib error saving to file ***.png failed

occurs for

scrot -s

Help for a solution. Thanks a lot.

like image 972
chenzhongpu Avatar asked Nov 24 '25 15:11

chenzhongpu


1 Answers

Are you telling scrot to save to an explicit file? Several things can go wrong:

  • you target a file that has an unsupported extensions. scrot -s asdf doesn't work. scrot -s asdf.png does.
  • I've seen scrot examples with quotes in the output. Special characters can mean trouble within quotes, for example ~. scrot ~/asdf.png works, scrot "~/asdf.png" doesn't work. Single quotes do not work either. That's the same as with mv, special character expansion. This gives a giblib error, which is a little confusing.

If this is your problem, do not to use quotes, use absolute pathes, or let scrot create its default file and move it afterwards as described here:

scrot -e 'mv $f ~/Pictures/screenshots'
like image 93
Gauthier Avatar answered Nov 27 '25 14:11

Gauthier



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!