Flameshot Print Button not working on Zorin 18 - Solution

The Issue is known for at least 2 years on other distros:
https://www.reddit.com/r/Fedora/comments/17vdusg/in_f39_flameshot_doesnt_launch_from_a_keyboard/

Problem:

If you try to configure a custom keyboard-shortcut for the Print -Button to execute the /usr/bin/flameshot gui command, nothing happens if the Print-Button is pressed.

I had the same problems and here are my two solutions:

Solution #01 - Recommended :green_circle:

  1. Create a script with only this command in it:
/usr/bin/flameshot gui
  1. Make the script executable
  2. Create a custom keyboard-shortcut that executes the script
    Thats how the shortcut looks then for me:

Solution Source: https://www.reddit.com/r/Fedora/comments/17vdusg/comment/kvp6rij/

Solution #02 - NOT Recommended :red_circle:

Switching back to X11 instead Wayland.
I have a suspicion, that many other problems appear, if you switch back to X11 so keep that in mind.

  1. run this command:
sudo nano /etc/gdm3/custom.conf
  1. Change the line
    # WaylandEnable=false
    into
    WaylandEnable=false
  2. Press ctrl+o, then enter, then ctrl+x
  3. Reboot

With this command it works to set up a custom shortcut for flameshot in Wayland and you don´t need a script:

sh -c -- "QT_QPA_PLATFORM=wayland flameshot gui"

2 Likes

Wow, thank you so much!!

2 Likes

I would like to confirm this as the solution, this worked instantly for me. ZOS Pro 18.

Flameshot version: flameshot/now 13.3.0-1 amd64 [installed,local]

I opted to install the .deb from the Github, as the version in the apt repo is a few versions behind.

I use Flameshoot v13.3.0

Your example command was very helpful.

Unfortunately, flameshoot is behaving very strangely.

I only want to take a screenshot of a rectangle using the print key. But the system takes photos of one of my three monitors almost at random. What could be causing this?

Unless you have followed the thread above.
Have you tried launching Flameshot app using right click?
Also, are you on Wayland or X11?

Flameshot seems to be difficult to use with multiple monitors because the monitor to take the screenshot from can not be selected and there is taken the screenshot first and then selected the area.

Screenshot tools where you first select the area are probably better suitable for a multi monitor setup. You can use the built-in tool or install gnome-screenshot

sudo apt install gnome-screenshot

which offers a time delay.
Ksnip is also a tool to take screenshots where you can select the area first but you need to switch to Xorg to use it.

Maybe you get some ideas here to find a solution for flameshot with multiple monitors: