Spectacle/screenshot: KWin screenshot request failed: The process is not authorized to take a screenshot

An error occurred while taking a screenshot on Debian 13 with KDE.

KWin screenshot request failed:

The process is not authorized to take a screenshot

Potentially relevant information:

- Method: CaptureScreen

- Method specific arguments: “HDMI-A-0”

Launching “spectacle” command in a Konsole, mentions kwin near the authorization fail. Restarting kwin via GUI (I have restarted it via CLI last time, due to some freeze/crash), helped:

nohup kwin_x11 --replace &

i am unsure if then was needed to get to the desktop (hiding all windows), type “k” to trigger krunner CLI and re-run “kwin_x11 –replace” there.