A window popped up asking permission for screen recording, but I accidentally clicked Deny. Now when I run the same command, I get the error shown in the screenshot.
How can I get the screen recording permission prompt to show up again? Any ideas would be appreciated!"
Thank you for your answer, this method is useful, but I can’t set all apps to allow screenshots. So what if I just want to set up flameshot alone? Thank you for your teaching.
I have an additional question. What should I do if it is related to screen recording permissions? Is it enough to change the two “screenshot” in the command?