flameshot-org / flameshot

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

"Copy path to clipboard after save" is wonky in sway when called via `flameshot gui` from shell #3400

Closed LouisLambda closed 8 months ago

LouisLambda commented 8 months ago

Flameshot Version

v12.1.0

Installation Type

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

Operating System type and version

Fedora 38

Description

Under sway, With "copy path to clipboard after file save" enabled, The saved path always shows up in the clipboard if flameshot is invoked via the "Take screenshot" entry in the context menu for the system tray applet.

when flameshot is invoked via flameshot gui on the command line (with applet still running in the system tray) the path sometimes does, but not always, show up in the clipboard.

If I use "take screenshot" from the context menu and save, the path appears in the clipboard. If I then invoke flameshot gui from the shell and save, the path appears in the clipboard. If I switch to another application and copy some text into the clipboard, then invoke flameshot gui and save, the path does NOT appear in the clipboard. I've repeated this many times and it reproduced reliably.

I've tried with and without USE_WAYLAND_CLIPBOARD, it makes no difference.

Steps to reproduce

No response

Screenshots or screen recordings

No response

System Information

Sway

LouisLambda commented 8 months ago

Problem is not specific to flameshot