flameshot-org / flameshot

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

I can't take a screenshot by pressing the hotkey #1577

Closed ghost closed 3 years ago

ghost commented 3 years ago

Flameshot version 0.9.0 Describe the bug I can't take a screenshot by pressing the hotkey,if I press the hotkey,then nothing happens. Btw I can take a screenshot by launching flameshot manually. To Reproduce Go into kde shortcut settings,search for "flameshot" and then enable a shortcut and press it. Expected behavior That I can take a screenshot by pressing the shortcuts. System Information image

mmahmoudian commented 3 years ago

Your explanation is confusing to me. Do you mean:

  1. when you press Printscreen button, the flameshot does not open or
  2. when you have opened flameshot and are annotating the screenshot, you cannot press a key to capture it (e.g Ctrl+c?
ghost commented 3 years ago

when you press Printscreen button, the flameshot does not open

That is what I mean.

mmahmoudian commented 3 years ago

That is the part that is not handled by Flameshot. Please follow instructions here:

https://flameshot.org/key-bindings/#on-kde-plasma-desktop

If you still had issues, comment here and I will try to help.

ghost commented 3 years ago

That is what I did,I added that and then there is a flameshot entry and I set a hotkey,but then if I press the hotkey it doesn't work.

mmahmoudian commented 3 years ago

Can you post some screenshots of your KDE shortcuts settings. Specifically the one you set for Flameshot. I'm interested in the command section of the shortcut

sr1canskhsia commented 3 years ago

For anyone who encountered the same problem: make sure you have the package qt5-tools installed! Somehow this package is only listed as a make dependency on arch...

mmahmoudian commented 3 years ago

@sr1canskhsia What is your operating system? As far as I know, the instructions are correct: https://flameshot.org/guide/installation/compilation/

sr1canskhsia commented 3 years ago

@mmahmoudian I'm on Arch Linux with KDE Plasma. I installed flameshot 0.9.0 from the Arch official repo. After that I removed all the make dependencies with pacman -Qttdq | pacman -Rns - I know that qt5-tools is required to build flameshot. But if it is also needed to make KDE shortcuts work properly, then the documentation should probably mention that. Or we should probably contact the Arch package maintainer to add qt5-tools as an optional dependency.

mmahmoudian commented 3 years ago

@borgmanJeremy What do you think is the correct approach? Either is fine by me, and even doing both seems the best.

xhudik commented 2 months ago

there is a workaround: script --command "flameshot gui" /dev/null

image

Kudos: https://github.com/flameshot-org/flameshot/issues/3365#issuecomment-1928940359