flameshot-org / flameshot

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

Can't launch flameshot on nixos with sway #3767

Open AntoineLass opened 1 month ago

AntoineLass commented 1 month ago

Flameshot Version

Flameshot v12.1.0

Installation Type

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

Operating System type and version

Nixos 24.05.5860.89172919243d (Uakari)

Description

The dbus-monitor content ``` ╭─tito@nixos ~ ╰─$ dbus-monitor --session sender=org.flameshot.Flameshot signal time=1730196414.582573 sender=org.freedesktop.DBus -> destination=:1.32 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired string ":1.32" signal time=1730196414.582608 sender=org.freedesktop.DBus -> destination=:1.32 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost string ":1.32" method call time=1730196419.916370 sender=:1.33 -> destination=org.freedesktop.DBus serial=4 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=1730196419.916391 sender=:1.33 -> destination=org.freedesktop.DBus serial=5 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameHasOwner string "org.a11y.Bus" ```

Steps to reproduce

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

Instruction come from the flameshot website

Screenshots or screen recordings

No response

System Information

Nixos 24.05.5860.89172919243d (Uakari) LG gram 16Z90P Sway Wayland

FelixJochems commented 1 month ago

Can you build with the "USE_WAYLAND_GRIM" flag and check if the issue persists?

IgaoWolf commented 1 month ago

Try to follow the step-by-step instructions I included in this issue. https://github.com/flameshot-org/flameshot/issues/3770