Environment
- OS: Ubuntu 24.04.3 LTS (Noble Numbat)
- Desktop: GNOME Shell 46.0
- Display server: Wayland
- Installation method:
sudo apt install flameshot
- Flameshot version:
v12.1.0 (Debian 12.1.0-2build2)
Problem
On this setup, trying to take a screenshot with Flameshot results in the following error:
flameshot: error: Unable to capture screen
This happens when launching from the tray icon or desktop launcher.
After debugging, the issue appears to be related to screenshot permissions handled by xdg-desktop-portal on GNOME/Wayland.
Flameshot itself works correctly once the screenshot permissions are properly granted to the application.
Solution: Grant screenshot permissions via D-Bus
The following sequence fixes the problem permanently on Ubuntu 24.04 + GNOME 46 + Wayland.
⚠️ Run these commands as your regular user (no sudo), in a terminal inside your graphical session.
1. Reset existing screenshot permissions
dbus-send --session --print-reply=literal \
--dest=org.freedesktop.impl.portal.PermissionStore \
/org/freedesktop/impl/portal/PermissionStore \
org.freedesktop.impl.portal.PermissionStore.DeletePermission \
string:'screenshot' string:'screenshot' string:''
This clears any previous (possibly broken or denied) screenshot permission entries.
2. Explicitly grant screenshot permission to Flameshot
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'
org.flameshot.Flameshot is the application ID from the desktop file.
- The
array:string:'yes' value grants the screenshot permission.
3. Verify that the permission is stored
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'
You should now see an entry containing org.flameshot.Flameshot and the granted permission.
4. Restart Flameshot
- Quit Flameshot from the tray icon (top bar) – right click → Quit.
- Start Flameshot again (from the app menu).
- Try Take Screenshot from the tray icon
At this point, screenshots should work normally without the Unable to capture screen error.
Environment
sudo apt install flameshotv12.1.0(Debian 12.1.0-2build2)Problem
On this setup, trying to take a screenshot with Flameshot results in the following error:
This happens when launching from the tray icon or desktop launcher.
After debugging, the issue appears to be related to screenshot permissions handled by
xdg-desktop-portalon GNOME/Wayland.Flameshot itself works correctly once the screenshot permissions are properly granted to the application.
Solution: Grant screenshot permissions via D-Bus
The following sequence fixes the problem permanently on Ubuntu 24.04 + GNOME 46 + Wayland.
1. Reset existing screenshot permissions
This clears any previous (possibly broken or denied) screenshot permission entries.
2. Explicitly grant screenshot permission to Flameshot
org.flameshot.Flameshotis the application ID from the desktop file.array:string:'yes'value grants the screenshot permission.3. Verify that the permission is stored
You should now see an entry containing
org.flameshot.Flameshotand the granted permission.4. Restart Flameshot
At this point, screenshots should work normally without the
Unable to capture screenerror.