Flameshot - unable to capture screen on Fedora

Flameshot - unable to capture screen on Fedora
I’m using Fedora 41 and it seems like since moving to Wayland, Flameshot has been having issues running correctly on Fedora. Hopefully, I found a solution.
Installing Flameshot
First, you need to install Flameshot. You can do this using the official Fedora app store or by running the following command in the terminal:
sudo dnf install flameshot
Configuring Flameshot
After installing Flameshot, you need to run the following two commands to make it work correctly under Wayland:
dbus-send --session --print-reply=literal --dest=org.freedesktop.impl.portal.PermissionStore /org/freedesktop/impl/portal/PermissionStore org.freedesktop.impl.portal.PermissionStore.SetPermission string:'screenshot' boolean:true string:'screenshot' string:'org.flameshot.Flameshot' array:string:'yes'
dbus-send --session --print-reply=literal --dest=org.freedesktop.impl.portal.PermissionStore /org/freedesktop/impl/portal/PermissionStore org.freedesktop.impl.portal.PermissionStore.Lookup string:'screenshot' string:'screenshot'
These commands set the necessary permissions for Flameshot to capture screenshots under Wayland.
Conclusion
After running these commands, Flameshot should work correctly on Fedora 41 with Wayland. If you continue to experience issues, make sure that you have the latest version of Flameshot installed and that your system is up to date.
EDIT 29.11.2024 : If flameshot launches automatically when the computer starts it will not work and we need just to “quit” flameshot and lauch it again and it will work. I may automate this in the future.
Happy screenshotting!
