3 ms·
Wayland works fine for me but it doesn't seem to allow many applications to take screenshots or recording the screen, so I had problems with PyAutoGUI and Disco
by GaggiX 3y ago
Wayland works fine for me but it doesn't seem to allow many applications to take screenshots or recording the screen, so I had problems with PyAutoGUI and Discord and I switched back to X11, if anyone knows a solution I would appreciate.
- zamadatix 3y agoThe only proper solution is e.g. Electron add the support and Discord then updates the base version of Electron. I remember reading somebody was working on a bridge for X11 apps to get Wayland screenshare access but I don't know if that actually became functional/usable. Wayland itself has had all of the bits for years at this point but it just doesn't have official bits for apps still running X11 style screensharing only. It's like GIMP still using GTK 2, it has no idea of Wayland at all so there's not much Wayland can do beyond run it an an XWayland island. Unfortunately there is no easy universal fix to that kind of gap beyond updating apps. Edit: a sibling comment linked to the project I was remembering - xwaylandbridge
- GaggiX 3y ago>It's like GIMP still using GTK 2, it has no idea of Wayland at all Oh I remember now, I was using GIMP and I couldn't figure out why the color picker was not working, I think that I understand now what was the reason.
- phone8675309 3y ago"Simply add screenshot and screen capture functionality to your favorite compositor and add a code path in your app to detect what compositor you're using at runtime and call the right methods" - Wayland developers Better hope the compositor of the week you're using that hasn't yet been abandoned is based on wlroots so you have some chance of it working.
- bb010g 3y agoThe actual solutions here are XDG Desktop Portals or Wayland protocols, the former of which are commonly used (<https://flatpak.github.io/xdg-desktop-portal/ https://flatpak.github.io/xdg-desktop-portal/>) and the latter of which are unstable proposals (<https://gitlab.freedesktop.org/wlroots/wlr-protocols/-/blob/4264185db3b7e961e7f157e1cc4fd0ab75137568/unstable/wlr-screencopy-unstable-v1.xml https://gitlab.freedesktop.org/wlroots/wlr-protocols/-/blob/...>). Wayland clients don't do compositor detection like you're describing, to my knowledge.
- papercrane 3y agoFor Discord you can try XWaylandVideoBridge. https://invent.kde.org/system/xwaylandvideobridge https://invent.kde.org/system/xwaylandvideobridge I don't think there is any solution for PyAutoGUI at the moment. Likely would require a lot of changes to their code.
- Vilian 3y agowayland allow, discord just need to fix their application(if you open discord on chrome or firefox it work fine)