flameshot-org / flameshot

Powerful yet simple to use screenshot software :desktop_computer: :camera_flash:
https://flameshot.org
GNU General Public License v3.0
24.7k stars 1.58k forks source link

Flameshot not working properly in GNOME 45 #3403

Closed archie-was-taken closed 11 months ago

archie-was-taken commented 11 months ago

Flameshot Version

Flameshot v12.1.0 (Debian 12.1.0-2) Compiled with Qt 5.15.8 linux: 6.5.0-10-generic ubuntu: 23.10

Installation Type

Linux, MacOS, or Windows Package manager (apt, pacman, eopkg, choco, brew, ...)

Operating System type and version

Ubuntu 23.10

Description

After updating Ubuntu 23.04 to 23.10 which ships with GNOME 45, Flameshot has started behaving erratically. I've got Super + F as the shortcut for flameshot gui, but when I press the keys, Flameshot sends a notification telling that it's unable to capture the screen. When I click on the 'Take Screenshot' option in the drop-down menu of the tray icon, the same thing happens.

However, if I open a Terminal window and type flameshot gui the screenshot is taken. I don't quite understand why it's happening, but I'm pretty sure it's started happening since I updated to Ubuntu 23.10.

Steps to reproduce

Ensure you're on GNOME 45, preferably on Ubuntu 23.10 (1) Click on the Super key (2) Type 'Flameshot' (3) Select the Flameshot app (Wait for the tray icon to appear) (4) Click on the tray icon (A drop-down menu appears) (5) Click on the 'Take Screenshot' option (Wait for a couple of seconds) You'll see a notification from Flameshot titled 'Unable to capture screen'

Screenshots or screen recordings

image

System Information

(1) Ubuntu 23.10 (2) image (3) - GNOME 45

maptile commented 11 months ago

I have exactly the same problem.

OS: Ubuntu 23.10 Desktop: Gnome 45 Wayland Flameshot version: v12.1.0

Additional details: On Ubuntu 23.04, which used Wayland and an unspecified version of GNOME, Flameshot failed to operate properly when installed via the apt command. Interestingly, the AppImage version of Flameshot did function correctly, despite being the same version as the apt install.

Following an upgrade to Ubuntu 23.10, featuring Wayland and GNOME 45, both installation methods ceased to work.

Currently, a temporary solution is to launch Flameshot directly from the terminal, which remains effective.

Trogie commented 11 months ago

Same problem after upgrading Ubuntu Desktop from 23.04 to 23.10: no more working flameshot anymore.

marcosjoao37 commented 11 months ago

Same problem for me after upgrading from Fedora 38 to Fedora 39, which uses Gnome 45.

mmahmoudian commented 11 months ago

This seems to be duplicate of #3383 and the solution to this round of Gnome's behavior is here:

https://github.com/flameshot-org/flameshot/issues/3383#issuecomment-1789630803

theuargb commented 10 months ago

@mmahmoudian I'm still getting the same error on the latest Fedora 39 Gnome 45 Wayland. Either shortcut is set to run flameshot gui or /bin/sh -c '/usr/bin/flameshot gui'

However it do works with script workaround mentioned in the comment https://github.com/flameshot-org/flameshot/issues/3326#issuecomment-1788817632

KamilBaczkowski commented 10 months ago

I'm a Gnome 45 user, and both of these workarounds don't work for me.

Version

Flameshot v12.1.0 (-) Compiled with Qt 5.15.11 linux: 6.1.65 NixOS: 24.05 (up to date)

Installation type

Through package manager

Operating System type and version

NixOS 24.05

Description

Flameshot doesn't work for me at all. If I do the three terminal setup from here and try running flameshot gui, nothing happens in the dbus-monitor. If I instead click on my tray and use the Take Screenshot feature, I get the following log:

method call time=1702034163.608832 sender=:1.1116 -> destination=org.freedesktop.portal.Desktop serial=17 path=/org/freedesktop/portal/desktop; interface=org.freedesktop.DBus.Introspectable; member=Introspect
method call time=1702034163.610243 sender=:1.1116 -> destination=org.freedesktop.DBus serial=18 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.freedesktop.portal.Desktop'"
method call time=1702034163.610259 sender=:1.1116 -> destination=org.freedesktop.DBus serial=19 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner
   string "org.freedesktop.portal.Desktop"
method call time=1702034163.610347 sender=:1.1116 -> destination=org.freedesktop.DBus serial=20 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner
   string "org.freedesktop.portal.Desktop"
method call time=1702034163.610398 sender=:1.1116 -> destination=org.freedesktop.DBus serial=21 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='signal',sender='org.freedesktop.portal.Desktop',path='/org/freedesktop/portal/desktop/request/1_1116/cfbd309489944ec88227b1e9e86cbb16',interface='org.freedesktop.portal.Request',member='Response'"
method call time=1702034163.610405 sender=:1.1116 -> destination=org.freedesktop.DBus serial=22 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.freedesktop.portal.Desktop'"
method call time=1702034163.610424 sender=:1.1116 -> destination=org.freedesktop.DBus serial=23 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner
   string "org.freedesktop.portal.Desktop"
method call time=1702034163.610491 sender=:1.1116 -> destination=org.freedesktop.portal.Desktop serial=24 path=/org/freedesktop/portal/desktop; interface=org.freedesktop.portal.Screenshot; member=Screenshot
   string ""
   array [
      dict entry(
         string "handle_token"
         variant             string "cfbd309489944ec88227b1e9e86cbb16"
      )
      dict entry(
         string "interactive"
         variant             boolean false
      )
   ]
method call time=1702034163.612251 sender=:1.1116 -> destination=org.freedesktop.portal.Desktop serial=25 path=/org/freedesktop/portal/desktop/request/1_1116/cfbd309489944ec88227b1e9e86cbb16; interface=org.freedesktop.portal.Request; member=Close
method call time=1702034163.612401 sender=:1.1116 -> destination=org.freedesktop.Notifications serial=26 path=/org/freedesktop/Notifications; interface=org.freedesktop.DBus.Introspectable; member=Introspect
method call time=1702034163.612702 sender=:1.1116 -> destination=org.freedesktop.DBus serial=27 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.freedesktop.Notifications'"
method call time=1702034163.612722 sender=:1.1116 -> destination=org.freedesktop.DBus serial=28 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner
   string "org.freedesktop.Notifications"
method call time=1702034163.612927 sender=:1.1116 -> destination=org.freedesktop.DBus serial=29 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
   string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.freedesktop.Notifications'"
method call time=1702034163.612955 sender=:1.1116 -> destination=org.freedesktop.DBus serial=30 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
   string "type='signal',sender='org.freedesktop.portal.Desktop',path='/org/freedesktop/portal/desktop/request/1_1116/cfbd309489944ec88227b1e9e86cbb16',interface='org.freedesktop.portal.Request',member='Response'"
method call time=1702034163.612963 sender=:1.1116 -> destination=org.freedesktop.DBus serial=31 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
   string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.freedesktop.portal.Desktop'"
method call time=1702034163.612983 sender=:1.1116 -> destination=org.freedesktop.DBus serial=32 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
   string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.freedesktop.portal.Desktop'"
method call time=1702034163.613026 sender=:1.1116 -> destination=org.freedesktop.DBus serial=33 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.freedesktop.Notifications'"
method call time=1702034163.613048 sender=:1.1116 -> destination=org.freedesktop.DBus serial=34 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner
   string "org.freedesktop.Notifications"
method call time=1702034163.613227 sender=:1.1116 -> destination=org.freedesktop.DBus serial=35 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
   string **"type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.freedesktop.Notifications'"**

As I mentioned, running with sh or using a separate executable file that then executes flameshot didn't work for me and lead to the same results.