-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support request: Wayland #155
Comments
Hello, Thanks for starting the discussion :) |
really looking fow wayland support |
Hello, I started looking at wayland support. I have worked on a very basic (incomplete) implementation repository . However I am getting horrible FPS (~3.5) and it pulls in two external dependencies (python-dbus and pygoobject). There are two points of interest:
This project (from what I understand) is supposed to be fast and no dependencies.
Concerns:
I have not been able to run the tests as the I have not made a pull request as this is very very preliminary. Apologies if I have skipped a step or not seen another discussion. I also just realized that I bumped a year old thread, sorry for that. |
A bump should be no issue as long as this issue is open and there is demand for wayland (or Xwayland on Gnome 40.0 in my case). I've tried the commits of surajRathi, but unfortunately receive NotImplementedError for _monitors_impl. Mss is a dependency for python-imagesearch, which i originally intended to use. |
I recently ran into a similar issue trying to use mss.grab on Fedora 36 and Ubuntu 22.04 LTS So onto a little extra bump here to anyone that understands the issue at hand perhaps |
Just wanted to add a little bit in case anyone wants to try to implement it; it looks like most desktop environments have opted to support xdg-desktop-portal, which exposes a Screencasting API, which provides a Pipewire interface to the screencast: https://docs.flatpak.org/en/latest/portal-api-reference.html#gdbus-org.freedesktop.portal.ScreenCast It looks like there's some talk in python-pillow to use this in case that provides some more useful resources: python-pillow/Pillow#6392 |
General information:
For GNU/Linux users:
Description of the warning/error
When running
mss
under Wayland, it crashs. As far as I understand from the source code,mss
currently uses xlib for Linux, which seems to (unsurprisingly) not work on Wayland. It would be very cool to have wayland support implemented, as it becomes more and more popular.Full message
Example: Executing the following snippet under X works perfectly, while under Wayland it produces an error.
Snippet:
Error on Wayland:
Other details
A lot of screenshot tools (e.g. shutter) have this issue, because screenshots seem to work completely different in Wayland (to improve security). Applications that do work are e.g.:
A proper way to do screenshots under Wayland is referenced in a flameshot issue and might help solving this in
mss
, too. The main statement from that issue:Upvote & Fund
The text was updated successfully, but these errors were encountered: