Can’t take screenshot with Spectacle

Screenshot request failed: "The process is not authorized to take a screenshot"
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

The fix:

rm ~/.local/share/applications/org.kde.spectacle.desktop

Then restart Spectacle.