flameshot-org / flameshot

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

Won't save to clipboard #3733

Open shinysquirrel04 opened 1 month ago

shinysquirrel04 commented 1 month ago

Flameshot Version

Flameshot v12.1.0 (Debian 12.1.0-2) Compiled with Qt 5.15.8 linux: 6.1.0-25-amd64 debian: 12

Installation Type

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

Operating System type and version

Debian with kde wayland

Description

Unless I have flameshot's configuration menu open it doesn't save the screenshot to my clipboard.

Steps to reproduce

  1. open flameshot with shortcut
  2. select an area
  3. hit "ctrl+c"
  4. look at clipboard screenshot non existant
  5. open flameshot's config menu
  6. open flameshot again with shortcut
  7. select an area
  8. hit "ctrl+c"
  9. look at clipboard to find my screenshot there

Screenshots or screen recordings

I tried to record with obs but couldn't make it work.

System Information

Operating System: Debian GNU/Linux 12 KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.103.0 Qt Version: 5.15.8 Kernel Version: 6.1.0-25-amd64 (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 7530U with Radeon Graphics Memory: 22.4 GiB of RAM Graphics Processor: AMD Radeon Graphics Manufacturer: LENOVO Product Name: 21JR0009TX System Version: ThinkPad E14 Gen 5

enk-it commented 1 week ago

I can reproduce this issue. My theory is that when you run flameshot with flameshot gui, it somewhy can not (or does not) start FlameshotDaemon. As far as i understand flameshot uses only one instance of this daemon and when you try to run flameshot gui it expects that process to be already started. As fas as i understand the deamon is responsible for copying screenshots to clipboard.

Can you try this out:

sudo pkill -9 flameshot
flameshot gui

After starting flameshot try to copy to clipboard. If you cb is empty after that run

ps aux | grep flame

And post it here. Description: this will kill all processes that was started with flameshot binary, and run flameshot gui.

So if you we don't see daemon process, then the problem is related to daemon starting mechanism (e.g. if daemon is not alive it can not (does not?) start). After that test, try it out:

sudo pkill -9 flameshot
flameshot & 
flameshot gui

flameshot --help says that by default running flameshot will start flameshot in background (i think it is about FlameshotDaemon). So my approach is to start Daemon by flameshot & and run screenshot gui with flameshot gui.

P.S when you run ps aux | grep flame you can see a process of ps aux | grep flame itself

enk-it commented 2 days ago

After a little research, i can suggest starting flameshot without parameters on startup. It will run flameshotdaemon, and copy to clipboard will work