Closed
Description
What did you do?
I've tried to make screenshot using Pillow on Wayland compositor, such as GNOME running in Wayland mode
What did you expect to happen?
Screenshot of full display
What actually happened?
Traceback (most recent call last):
Python Shell, prompt 2, line 1
# Used internally for debug sandbox under external interpreter
File "/home/khazakar/Project/Test/test_venv/lib/python3.8/site-packages/PIL/ImageGrab.py", line 68, in grab
size, data = Image.core.grabscreen_x11(xdisplay)
builtins.OSError: X get_image failed: error 8 (73, 0, 1315)
What are your OS, Python and Pillow versions?
- OS: Ubuntu 20.04, GNOME Wayland
- Python: 3.8.10
- Pillow: 9.1.0
from PIL import ImageGrab
ImageGrab.grab()
Is there wayland support on roadmap anytime soon?