screenshot-desktop icon indicating copy to clipboard operation
screenshot-desktop copied to clipboard

Linux scrot error when no filename

Open JSteunou opened this issue 5 years ago • 3 comments
trafficstars

Describe the bug

Not working on Linux when using scrot & no filename

To Reproduce

await screenshot({
  linuxLibrary: 'scrot',
})

Expected behavior

should return a buffer

Screenshots

 Error: Command failed: scrot "-" -e -z "echo \"-\""
giblib warning: unrecognised option echo "-"

giblib error: Saving to file - failed

Environment (please complete the following information):

  • OS: Ubuntu 19.04
  • Engine node
  • Version 12.13.0

JSteunou avatar Dec 04 '19 16:12 JSteunou

language please... kkkkkk

lucasltv avatar Jan 25 '21 18:01 lucasltv

i have also facing this issue .. Error: Command failed: scrot "-" -e -z "echo \"-\""

jsriganeshgdt avatar May 13 '22 09:05 jsriganeshgdt

Looks to be an issue with quoting arguments https://stackoverflow.com/questions/26326664/scrot-giblib-error-saving-to-file-failed

bencevans avatar May 13 '22 20:05 bencevans