Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux scrot error when no filename #153

Open
JSteunou opened this issue Dec 4, 2019 · 3 comments
Open

Linux scrot error when no filename #153

JSteunou opened this issue Dec 4, 2019 · 3 comments
Labels

Comments

@JSteunou
Copy link

JSteunou commented Dec 4, 2019

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 JSteunou added the bug label Dec 4, 2019
@bencevans bencevans changed the title Linux scrot erreur when no filename Linux scrot error when no filename May 30, 2020
@lucasltv
Copy link

language please... kkkkkk

@jsriganeshgdt
Copy link

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

@bencevans
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants