Open anilv4 opened 1 month ago
This issue happened again.
Sharing the log,
Jul 11 11:40:39 fedora xdg-desktop-por[5770]: Failed to associate portal window with parent window
Jul 11 11:40:39 fedora xdg-desktop-por[5463]: Failed to show access dialog: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Only the focused app is allowed to show a
system access dialog
Jul 11 11:40:39 fedora org.flameshot.Flameshot.desktop[337746]: flameshot: error: Unable to capture screen
Jul 11 11:40:39 fedora org.flameshot.Flameshot.desktop[337746]: flameshot: error: Unable to capture screen
Flameshot v12.1.0 Ubuntu 24.04
This works for me:
Take the screenshot as you normally do and as many times you'd like, the flameshot is now working as normal.
If you restart your computer, then you have to redo the above steps.
Good luck!
Same issue here (also Fedora 40 on Gnome with Wayland) . When I run flameshot gui
from the terminal it seems to work reliably. Afterwards, using 'Take screenshot' from the tray icon also keeps working. Using the custom keyboard shortcut assigned to flameshot gui
does not
Jul 17 10:57:35 thinkpad flameshot[247258]: flameshot: info: Screenshot aborted.
Jul 17 10:57:35 thinkpad flameshot[247258]: flameshot: error: Unable to capture screen
Jul 17 10:57:35 thinkpad flameshot[247258]: flameshot: error: Unable to capture screen
Jul 17 10:57:35 thinkpad xdg-desktop-por[96402]: Failed to show access dialog: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Only the focused app is a>
Jul 17 10:57:35 thinkpad xdg-desktop-por[96652]: Failed to associate portal window with parent window
Jul 17 10:57:34 thinkpad systemd[2829]: Started app-gnome-flameshot-247258.scope - Application launched by gsd-media-keys.
me too. I using Fedora 40 wayland. If I run it through terminal using flameshot gui
or flameshot gui -d 2000
, it work perfectly. but it wont work on shortcut.
here's the log
10:34:03 AM flameshot: flameshot: info: Screenshot aborted.
10:34:03 AM flameshot: flameshot: error: Unable to capture screen
10:34:03 AM flameshot: flameshot: error: Unable to capture screen
10:34:03 AM xdg-desktop-por: Failed to show access dialog: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Only the focused app is allowed to show a system access dialog
10:34:03 AM xdg-desktop-por: Failed to show access dialog: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Only the focused app is allowed to show a system access dialog
10:34:03 AM xdg-desktop-por: Failed to associate portal window with parent window
10:34:03 AM systemd: Started app-gnome-flameshot-36979.scope - Application launched by gsd-media-keys.
❯ inxi --width 80 --system --graphics
System:
Host: PC Kernel: 6.9.10-200.fc40.x86_64 arch: x86_64 bits: 64
Desktop: GNOME v: 46.3.1 Distro: Fedora Linux 40 (Workstation Edition)
Graphics:
Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620] driver: i915 v: kernel
Device-2: NVIDIA GP108M [GeForce MX250] driver: nvidia v: 555.58.02
Device-3: IMC Networks USB2.0 HD UVC WebCam driver: uvcvideo type: USB
Display: wayland server: X.Org v: 24.1.1 with: Xwayland v: 24.1.1
compositor: gnome-shell driver: X: loaded: modesetting dri: iris gpu: i915
resolution: 1920x1080~60Hz
API: OpenGL v: 4.6 vendor: intel mesa v: 24.1.4 renderer: Mesa Intel UHD
Graphics 620 (WHL GT2)
API: EGL Message: EGL data requires eglinfo. Check --recommends.
Same thing on fedora 40, wayland
also the flameshot icon is not displayed in the top bar, it used to be, but not anymore. So CLI is the only way
The issue happened when I autostart flameshot using its "launch at startup" option. I will no longer face the issue if I manually add flameshot to autostart via the gnome-tweak tool. I could not find a difference between how the above two startup methods differ, but I am no longer facing those "screenshot" abort issues.
Hope someone can verify this workaround.
Regards, Anil
I read it somewhere, I forgot the source, but it works on my Fedora 40 Gnome 46 Wayland . will update it when I can find it.
Create a new file on /usr/local/bin
, name it whatever you want. I name it flameshot-gui-workaround
add this to your file
#!/bin/bash
flameshot gui
do chmod +x yourfile
on shortcut, in command input the file name you saved before.
@PororoManon helped me! Thanks!
Flameshot Version
$ flameshot --version Flameshot v12.1.0 (-) Compiled with Qt 5.15.12
Installation Type
Linux, MacOS, or Windows Package manager (apt, pacman, eopkg, choco, brew, ...)
Operating System type and version
Fedora 40
Description
flameshot errors out saying, "flameshot: error: Unable to capture screen". This happens randomly. Restarting flameshot will resolve the issue. By that time, the screen i want to take screenshot may move to another presentation. Its random and annoying.
Steps to reproduce
Screenshots or screen recordings
journalctl logs captured at the time of the issue.
Jul 08 11:01:34 fedora systemd[5881]: Started app-gnome-Flameshot-216474.scope - Application launched by gnome-session-binary. Jul 08 16:27:22 fedora flameshot[216474]: "Object does not exist at path “/org/freedesktop/NetworkManager/ActiveConnection/2”" Jul 08 16:39:46 fedora Flameshot.desktop[216474]: flameshot: error: Unable to capture screen Jul 08 16:39:46 fedora Flameshot.desktop[216474]: flameshot: error: Unable to capture screen Jul 08 16:39:50 fedora Flameshot.desktop[216474]: flameshot: error: Unable to capture screen Jul 08 16:39:50 fedora Flameshot.desktop[216474]: flameshot: error: Unable to capture screen Jul 08 16:39:56 fedora Flameshot.desktop[216474]: flameshot: error: Unable to capture screen Jul 08 16:39:56 fedora flameshot[216474]: QPixmap::scaled: Pixmap is a null pixmap Jul 08 16:39:56 fedora flameshot[216474]: QPixmap::scaled: Pixmap is a null pixmap Jul 08 16:40:00 fedora Flameshot.desktop[216474]: flameshot: error: Unable to capture screen Jul 08 16:40:00 fedora Flameshot.desktop[216474]: flameshot: error: Unable to capture screen Jul 08 17:32:06 fedora systemd[5881]: app-gnome-Flameshot-216474.scope: Consumed 2.338s CPU time.
System Information