ponty / pyscreenshot

Python screenshot library, replacement for the Pillow ImageGrab module on Linux.
BSD 2-Clause "Simplified" License
502 stars 88 forks source link

Plugin for gnome-screenshots (supports Wayland) #46

Closed lipoja closed 6 years ago

lipoja commented 6 years ago

I've created plugin that wraps gnome-screenshot tool. gnome-screenshot is the only tool that worked for me running GNOME Shell on Wayland. What is the issue and why to use gnome-screenshot?

Quote from https://bugs.freedesktop.org/show_bug.cgi?id=98672#c1 :

By design, Wayland is a lot more secure than X11 and does not allow one application to capture the content of other applications' windows, meanignath a X11 based screenshot tool cannot work underWayland/Xwayland.

Both Weston and gnome-shell (Wayland compositors) have screencast and screenshot features built-in.

PROS: works with Wayland CONS: gnome-screenshot takes more than 1s to take a screenshot.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.2%) to 39.723% when pulling cae20432aa2298c8397a4bf69e8068004b3be9ef on lipoja:master into 2730487ebc44282ec78b83532f424368b4ce2fb8 on ponty:master.

ponty commented 6 years ago

Thanks!