Bug 2010513 - Invalid reply from DBus: Screenshot is not allowed
Summary: Invalid reply from DBus: Screenshot is not allowed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ksnip
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vitaly
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-04 21:05 UTC by Otto Liljalaakso
Modified: 2021-11-25 01:04 UTC (History)
2 users (show)

Fixed In Version: ksnip-1.9.2-1.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-25 01:04:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ksnip ksnip issues 727 0 None closed Critical: Invalid reply from DBus: Screenshot is not allowed 2021-11-23 16:39:58 UTC

Description Otto Liljalaakso 2021-10-04 21:05:59 UTC
Description of problem:
In Fedora 35 Workstation (so Gnome 41),
ksnip is unable to capture any screenshots.
When I select something from the New combobox,
the ksnip window quickly jumps around the screen a little
and end up in a position very close to its original position.
No screenshot is captured.
If I try to capture a rectangular area,
ksnip lets me to choose the area,
but no screenshot is captured.

Starting ksnip from the command line,
I am able to get some logs.
Apart from some warnings about missing translations,
the only log entries are one row like this
for each attempted screenshot:

Critical: Invalid reply from DBus: Screenshot is not allowed


Version-Release number of selected component (if applicable):
1.9.1-1.fc35.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Start ksnip (from the command line, to see logs: $ ksnip)
2. Take a screenshot

Actual results:
No screenshot is saved,
the following error is logged:

    Critical: Invalid reply from DBus: Screenshot is not allowed

Expected results:
Screenshot is saved,
no errors.

Additional info:
I also reported this upstream:

    https://github.com/ksnip/ksnip/issues/727

Comment 1 Otto Liljalaakso 2021-10-30 11:54:05 UTC
To recap upstream discussion,
the new security features in Gnome 41
prevent application access to screen contents,
leading to this problem.
The only way to take screenshots is to go through xgd-desktop-portal.
This can be enabled in ksnip settings ("Force Generic Wayland screenshot"),
though the experience will not be very good,
since the portal prompts user for allowing access,
and replaces ksnip controls for window/area capture and so on
with portal's own system.

The best that can be done
before xdg-desktop-portal gets improved support for external screenshot apps
is to automatically enable the "Generic Wayland screenshot" for Gnome >= 41.
Upstream master branch already has this.

Comment 2 Fedora Update System 2021-11-23 16:34:11 UTC
FEDORA-2021-b5ad309d1f has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-b5ad309d1f

Comment 3 Fedora Update System 2021-11-24 01:57:31 UTC
FEDORA-2021-b5ad309d1f has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-b5ad309d1f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-b5ad309d1f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2021-11-25 01:04:35 UTC
FEDORA-2021-b5ad309d1f has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.