Bug 431202 - Spectacle fails in gnome under wayland
Summary: Spectacle fails in gnome under wayland
Status: RESOLVED DUPLICATE of bug 404839
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 20.08.1
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-06 00:24 UTC by pag2gap
Modified: 2021-12-13 21:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
spectacle fials to capture screen under wayland in gnome (403.71 KB, image/png)
2021-01-06 00:24 UTC, pag2gap
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pag2gap 2021-01-06 00:24:05 UTC
Created attachment 134600 [details]
spectacle fials to capture screen under wayland in gnome

SUMMARY
Under Wayland in Gnome Spectacle fails to capture screen - picture in attachments

Spectacle under xorg Gnome session works without a problem

Tried under Plasma. Spectacle under both xorg and wayland in Plasma works well

STEPS TO REPRODUCE
1. Login to Gnome session under wayland
2. Launch Spectacle
3. Take new screenshot

OBSERVED RESULT
Spectacle is unable to take a screenshot - desktop is not visible in main window, e.g. screenshot is empty. Clicking take new screenshot produces empty screenshot

EXPECTED RESULT
opening spectacle and clicking take new screenshot would produce image with desktop


SOFTWARE/OS VERSIONS

Linux: Fedora Gnome 33
Gnome Version: 3.38.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-01-06 05:29:08 UTC
I suspect that mutter will need modification. I know we had to change KWin to get Spectacle working properly on Wayland, and I don't know if the screenshot stuff is standardized into a common protocol yet.
Comment 2 David Redondo 2021-01-11 09:49:23 UTC
We currently only support KWin on Wayland. There is portal interface for taking screenshots but it's rather limited but we could still add support for it
https://github.com/flatpak/xdg-desktop-portal/blob/master/data/org.freedesktop.portal.Screenshot.xml#L34
but you would lose almost all screenshot modes.

Upstream there is an issue for creating a wayland protocol https://gitlab.freedesktop.org/wayland/wayland/-/issues/32

The gnome api seems to be 
https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/master/data/dbus-interfaces/org.gnome.Shell.Screenshot.xml
Comment 3 Nate Graham 2021-12-13 21:44:04 UTC

*** This bug has been marked as a duplicate of bug 404839 ***