Update wl-paste handling and return None for some errors in grabclipboard() on Linux by nik012003 · Pull Request #7745 · python-pillow/Pillow

nulano

radarhere

radarhere

radarhere

@radarhere radarhere changed the title Refactor grabclipboard() for x11 and wayland Refactor grabclipboard() for Linux

Jan 23, 2024

radarhere

@nik012003

Simpified logic and made it more robust against edge cases ( see the `allowed_errors` list ). Doing error checking this way, makes the behaviour of this function for x11 and wayland platforms more silimar to darwin and windows systems.

fix typo src/PIL/ImageGrab.py

Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>

fix typo src/PIL/ImageGrab.py

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>

ImageGrab: \added debian edge case to comment

radarhere

@nik012003 @radarhere

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>

radarhere

@radarhere

@radarhere radarhere changed the title Refactor grabclipboard() for Linux Update wl-paste handling and return None for some errors in grabclipboard() on Linux

Jan 27, 2024

@nik012003

@nik012003

@radarhere