Add KDE Wayland support for ImageGrab by AdianKozlica · Pull Request #8842 · python-pillow/Pillow
Tested it on:
- Fedora Linux 41 (Plasma Version: 6.3.3, Wayland Session), seems to be working properly
- Fedora Linux 41 (GNOME 47, Wayland Session)
Requires installation of gnome-screenshot (since GNOME 42) beacause it was replaced by a tool that is integrated within the GNOME shell. (https://en.wikipedia.org/wiki/GNOME_Screenshot)
I was thinking of maybe digging further after this is solved, since from what I have read, gnome-screenshot uses dbus to get the screenshot from GNOME (https://www.reddit.com/r/Fedora/comments/10924rg/why_does_gnomescreenshot_is_not_found_in_fedora/) - Xubuntu 24.04 (XFCE Version: 4.18, X11 Session), seems to be working properly