screenshot-desktop
screenshot-desktop copied to clipboard
Linux scrot error when no filename
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
language please... kkkkkk
i have also facing this issue ..
Error: Command failed: scrot "-" -e -z "echo \"-\""
Looks to be an issue with quoting arguments https://stackoverflow.com/questions/26326664/scrot-giblib-error-saving-to-file-failed