Flameshot - unable to capture screen on Fedora

26 Nov, 2024·
AlexIn Tech
AlexIn Tech
· 1 min read
Image credit: Flameshot

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.

Flameshot Screenshot

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!

AlexIn Tech
Authors
SysOps Engineer | IT Teacher
Versatile IT Engineer with a dual specialization in System Engineering and Management, AlexIn Tech teaches IT to CFC apprentice IT specialists at ETML, the Technical School of Lausanne 🇨🇭. Passionate about IT, innovation, and knowledge sharing, he shares his discoveries and learnings here to inspire new generations.