Bug 2248667 - Unable to capture screen
Summary: Unable to capture screen
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: flameshot
Version: 39
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Vitaly
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/flameshot-org/flam...
Whiteboard:
: 2261925 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-11-08 09:00 UTC by davletsh1n
Modified: 2024-11-27 21:39 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-11-27 21:39:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github flameshot-org flameshot issues 3340 0 None open Fedora 39 screenshot capture failed 2024-04-25 09:12:41 UTC
Github flameshot-org flameshot issues 3365 0 None open Flameshot unable to capture screen when triggered through Gnome shortcut 2024-04-25 09:12:41 UTC

Description davletsh1n 2023-11-08 09:00:26 UTC
In the terminal, executing flameshot gui works fine, but calling it from a custom Gnome shortcut, I see a permission error.

Failed to show access dialog: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Only the focused app is allowed to show a system access dialog


Reproducible: Always

Steps to Reproduce:
1. Install flameshot via flatpak
2. Setup gnome shortcut for "flameshot gui"
3. Get flameshot: error: Unable to capture screen/ GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Only the focused app is allowed to show a system access dialog
Actual Results:  
Get flameshot: error: Unable to capture screen/ GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Only the focused app is allowed to show a system access dialog

Expected Results:  
Flameshot gui appears

Check https://github.com/flameshot-org/flameshot/issues/3340
It contains some video examples

Comment 1 Gergely Gombos 2024-02-10 08:09:41 UTC
The bug still exists, and it's fixed by running these commands:

dbus-send --session --print-reply=literal --dest=org.freedesktop.impl.portal.PermissionStore /org/freedesktop/impl/portal/PermissionStore org.freedesktop.impl.portal.PermissionStore.SetPermission string:'screenshot' boolean:true string:'screenshot' string:'org.flameshot.Flameshot' array:string:'yes'

dbus-send --session --print-reply=literal --dest=org.freedesktop.impl.portal.PermissionStore /org/freedesktop/impl/portal/PermissionStore org.freedesktop.impl.portal.PermissionStore.Lookup string:'screenshot' string:'screenshot'

I think this is safe to do - as it's a screenshot software, the user expects it to be able to take screenshots, so these commands could be included as part of the installation.

Comment 2 Vitaly 2024-04-25 09:10:50 UTC
*** Bug 2261925 has been marked as a duplicate of this bug. ***

Comment 3 Aoife Moloney 2024-11-13 10:00:12 UTC
This message is a reminder that Fedora Linux 39 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 39 on 2024-11-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '39'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 39 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 4 Aoife Moloney 2024-11-27 21:39:56 UTC
Fedora Linux 39 entered end-of-life (EOL) status on 2024-11-26.

Fedora Linux 39 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


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