flameshot-org / flameshot

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

Flamshot not working on Ubuntu 23.04 #3275

Open Afif-Ahmed opened 11 months ago

Afif-Ahmed commented 11 months ago

Flameshot Version

Flameshot v12.1.0 (Debian 12.1.0-2) Compiled with Qt 5.15.8

Installation Type

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

Operating System type and version

Ubuntu 23.04

Description

Flamshot shows running on the taskbar but when Clicking the flameshot Icon nothings happen. When tried with the terminal it is working. When the process is killed and reinitiated without using the terminal the issue persists. Here are the logs.

signal time=1690199476.806122 sender=org.freedesktop.DBus -> destination=:1.223 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired string ":1.223" signal time=1690199476.806175 sender=org.freedesktop.DBus -> destination=:1.223 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost string ":1.223" method call time=1690199785.356699 sender=:1.229 -> destination=org.freedesktop.DBus serial=12 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.a11y.Bus',arg1=''" method call time=1690199785.356789 sender=:1.229 -> destination=org.freedesktop.DBus serial=13 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameHasOwner string "org.a11y.Bus" method call time=1690199785.356991 sender=:1.229 -> destination=org.freedesktop.DBus serial=14 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.a11y.Bus'" method call time=1690199785.357124 sender=:1.229 -> destination=org.freedesktop.DBus serial=15 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner string "org.a11y.Bus" method call time=1690199785.357298 sender=:1.229 -> destination=org.a11y.Bus serial=16 path=/org/a11y/bus; interface=org.freedesktop.DBus.Properties; member=Get string "org.a11y.Status" string "ScreenReaderEnabled" method call time=1690199785.357757 sender=:1.229 -> destination=org.a11y.Bus serial=17 path=/org/a11y/bus; interface=org.freedesktop.DBus.Properties; member=Get string "org.a11y.Status" string "IsEnabled" method call time=1690199802.633696 sender=:1.229 -> destination=org.freedesktop.Notifications serial=18 path=/org/freedesktop/Notifications; interface=org.freedesktop.DBus.Introspectable; member=Introspect method call time=1690199802.634494 sender=:1.229 -> destination=org.freedesktop.DBus serial=19 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=1690199802.634662 sender=:1.229 -> destination=org.freedesktop.DBus serial=20 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner string "org.freedesktop.Notifications" method call time=1690199802.634681 sender=:1.229 -> destination=org.freedesktop.Notifications serial=21 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify string "flameshot" uint32 0 string "flameshot" string "Flameshot Info" string "Capture saved to clipboard." array [ ] array [ ] int32 5000 method call time=1690199802.642452 sender=:1.229 -> destination=org.freedesktop.DBus serial=22 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 return time=1690199802.658156 sender=:1.229 -> destination=:1.237 serial=23 reply_serial=21 method call time=1690200373.889318 sender=:1.229 -> destination=org.freedesktop.portal.Desktop serial=24 path=/org/freedesktop/portal/desktop; interface=org.freedesktop.DBus.Introspectable; member=Introspect

Steps to reproduce

First try the using the command flameshot gui in terminal. This does exactly what clicking on the tray icon does (make sure can you see Flameshot icon in the tray area).

If the step above didn't work:

Open 3 terminals Kill Flameshot if it is already open using: pkill flameshot In the first terminal run: dbus-monitor --session sender=org.flameshot.Flameshot In the second terminal run: flameshot In the third terminal run the command you want us to investigate. For example: flameshot gui

Screenshots or screen recordings

No response

System Information

System: Host: AFIF Kernel: 6.2.0-25-generic arch: x86_64 bits: 64 Desktop: GNOME v: 44.2 Distro: Ubuntu 23.04 (Lunar Lobster) Graphics: Device-1: Intel Alder Lake-UP3 GT2 [Iris Xe Graphics] driver: i915 v: kernel Device-2: Luxvisions Innotech Integrated Camera type: USB driver: uvcvideo Display: wayland server: X.Org v: 1.22.1.8 with: Xwayland v: 22.1.8 compositor: gnome-shell driver: dri: iris gpu: i915 resolution: 1920x1080~60Hz API: OpenGL v: 4.6 Mesa 23.0.4-0ubuntu1~23.04.1 renderer: Mesa Intel Graphics (ADL GT2)

Monitors: 1 0: +*XWAYLAND0 1920/340x1080/190+0+0 XWAYLAND0

Screen 0: minimum 16 x 16, current 1920 x 1080, maximum 32767 x 32767 XWAYLAND0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 340mm x 190mm 1920x1080 59.96*+ 1440x1080 59.99
1400x1050 59.98
1280x1024 59.89
1280x960 59.94
1152x864 59.96
1024x768 59.92
800x600 59.86
640x480 59.38
320x240 59.52
1680x1050 59.95
1440x900 59.89
1280x800 59.81
720x480 59.71
640x400 59.95
320x200 58.96
1600x900 59.95
1368x768 59.88
1280x720 59.86
1024x576 59.90
864x486 59.92
720x400 59.55
640x350 59.77

Linux AFIF 6.2.0-25-generic #25-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 16 17:05:07 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

mmahmoudian commented 11 months ago

This has been reported before. Also the "steps to reproduce" is direct copy-paste from our own documentation and is not relevant to what you are reporting. Therefore this is invalid bug report.

I will keep this open until I found the issue that this one is duplicate of.

Please for the next issue do your best to search among open and closed issues, and also we are all volunteers here, so the more careless you fill the bug report form, the more time and effort we should spend on figuring things out. Would be nice if you pay more attention and care for the next bug report. Thank you.

Afif-Ahmed commented 11 months ago

I know these steps are already mentioned in the previous bug report, As for the confirmation I have mentioned that the flameshot is working fine with these steps but is not accessible with the taskbar, when we click the flame shot icon on the task bar nothing happens, but after executing just flameshot on terminal it also runs fine from the taskbar. Apologies if you find anything confusing.

mmahmoudian commented 11 months ago

Thanks for the clarification.

reidkaufmann commented 11 months ago

I can confirm that I'm also unable to capture a screenshot using the taskbar icon on Ubuntu 23.04 if the program is invoked by Gnome either during startup or by the launcher. If I start flameshot from a terminal, then I can use the taskbar icon to capture screenshots.

faggioni commented 11 months ago

Hello There,

Same issue here :)

jvitormichels commented 11 months ago

apparently it is working normally with sudo apt-get install flameshot

oben01 commented 9 months ago

Hello same issue here :)

Akshaychdev commented 6 months ago

Facing the issue on Ubuntu 23.04 image

When changing to wayland by commenting WaylandEnable=false in /etc/gdm3/custom.conf in, Flameshot stops working with Unable to capture error

I have all these packages installed, also flameshot installed with apt

Flameshot v12.1.0 (Debian 12.1.0-2)
Compiled with Qt 5.15.8

Does any working solution to make flameshot working with wayland

tavogorriak commented 3 months ago

I solve this in Ubuntu 23.10 just changed command in the startup programs sh -c -- "flameshot"

imagen

That`s all.

reidkaufmann commented 2 months ago

probably a bug

That's why the issue was created!

On 23.10 the issue is not whether flameshot will start -- it is an issue of whether it can take a screenshot if started from the Ubuntu dock: image

julianandreszb commented 1 month ago

I solve this in Ubuntu 23.10 just changed command in the startup programs sh -c -- "flameshot"

imagen

That`s all.

I used sh -c -- "flameshot gui" instead and worked on Ubuntu 24.04

jflambert commented 2 weeks ago

I used sh -c -- "flameshot gui" instead and worked on Ubuntu 24.04

It does work, but it also starts ubuntu sessions with a screenshot ;)