nut.js
nut.js copied to clipboard
All screenshot related methods prints a transparent image
Version
@nut-tree/[email protected]
Ubuntu 20.04.5 LTS
Short overview
When I try to take a screenshot, the image saved on the system is all transparent. I have tried all my options already, opening an issue was my last. I'm not sure if this is related to: https://github.com/nut-tree/libnut/pull/34
Issue occurs on
- [ ] Virtual machine
- [ ] Docker container
- [X] Dev/Host system
Steps to reproduce error
await screen.capture('whatever', FileType.PNG)
Additional content
The resulting screenshot
Same here. Regardless of the method used (screen.grabRegion()
, screen.captureRegion()
) - image is always empty. Same code on Win10 works correctly.
Manjaro linux
Hi @Linkaynn @maks-rafalko 👋
Are you running Wayland or the XWayland compatibility mode?
Hi @s1hofmann ! Thanks for the reply
I used the Wayland option on Ubuntu login screen 🤔
Could you please try using the XWayland option? Wayland support is still lacking