Summary: | Some screenshots fail in Wayland | ||
---|---|---|---|
Product: | [Applications] Spectacle | Reporter: | gotlouemail |
Component: | General | Assignee: | Boudhayan Gupta <me> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | gotlouemail, kde |
Priority: | NOR | ||
Version: | 21.04.2 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | What the user sees after the screenshot fails |
Description
gotlouemail
2021-11-24 13:19:39 UTC
So, it turns out that there are 2 restricted interfaces that Spectacle uses for taking screenshots on Wayland, one of which works just fine and the other, older one is deprecated. Some users may have a .desktop file that could still tell Spectacle to use the older interface, which produces errors such as these. The interfaces in question are: org.kde.KWin.ScreenShot2 (new one) and org.kde.kwin.Screenshot (old and deprecated). The variable used to denote this is X-KDE-DBUS-Restricted-Interfaces. Most distros ship a .desktop file that uses the new one now, but if you have a .desktop file in your ~/.local/share/applications folder which uses the old interface, you'll either have to find and change a certain line in that file to this: X-KDE-DBUS-Restricted-Interfaces=org.kde.kwin.Screenshot,org.kde.KWin.ScreenShot2 Or just delete the file itself, /usr/share/applications will have a .desktop file for Spectacle that will work as well. This helped solve this problem completely and Spectacle works just fine now. |