When using Flameshot in Ubuntu Oracular Oriole, its return error : “Unable to capture the screen” Flameshot error. This is persistent whether you are using APT, snap or flatpak.
The quick solution is to modify the launcher and add a simple command. I’m using APT, so I will edit the launcher from ehre
sudo vim /usr/share/applications/org.flameshot.Flameshot.desktop
Then edit the execution
[Desktop Entry]
...
Keywords[es]=flameshot;screenshot;capture;shutter;captura;
Keywords[de]=flameshot;screenshot;Bildschirmfoto;Aufnahme;
Keywords[pt_BR]=flameshot;screenshot;captura de tela;captura;shutter;
Exec=flameshot
Icon=org.flameshot.Flameshot
Terminal=false
Type=Application
....
Change the execution to be
Exec=sh -c -- "flameshot"
This shall fix your problem without any need to disable Wayland and others things. Enjoy!