Sub topic 14
Fix permission and shortcut problems
This chapter assumes you know the capture shortcuts, the Screenshot toolbar (Shift-Command-5), and how to open Terminal. It covers what to check when a capture fails, comes out wrong, or produces nothing.
Start by finding the symptom
Most failures fall into a few groups. Match what you see to the likely cause before changing any settings.
| Symptom | Likely cause | First thing to try |
|---|---|---|
| Shortcut does nothing | Shortcut is turned off or reassigned | Check Keyboard Shortcuts settings |
| Capture is saved but you cannot find it | Save location was changed | Open the Options menu in the toolbar |
| Recording has no sound | No microphone selected, or no permission | Choose a microphone in Options |
| Terminal capture is blank or only shows the wallpaper | Terminal lacks Screen Recording permission | Grant permission and relaunch |
| Capture works but the file is the wrong format | The `type` default was changed | Reset it with `defaults` |
Shortcuts that do not respond
Open System Settings, choose Keyboard, then Keyboard Shortcuts, then Screenshots. Each capture shortcut has a checkbox. If one is cleared, the key combination does nothing.
Check these causes in order:
- The shortcut is unchecked in the Screenshots list.
- Another app or another system shortcut uses the same combination. Reassign one of them.
- A third-party utility has taken over the keys. Quit it and test again.
- The keyboard sends different keys than you expect, for example an external keyboard with a different modifier layout. Test with the built-in keyboard.
If everything looks correct, press Shift-Command-5. The toolbar does not depend on the individual shortcuts for the 3 and 4 combinations, so it helps you tell whether capture itself works.
Permissions
Screenshots of your own desktop need no special setting. Screen recording, and capture from other apps, is governed by privacy permissions. Look in System Settings, under Privacy and Security, then Screen Recording (the name can differ slightly between macOS versions).
When an app asks to record your screen, macOS shows a prompt once. If you chose Don't Allow, the app stays blocked until you change it manually:
- Open the Screen Recording list.
- Turn on the switch next to the app.
- Quit and reopen the app. Permission changes often apply only to apps that start afterward.
Microphone access is a separate list, under Microphone in the same Privacy and Security area. A recording with no voice usually means either no microphone was picked in the toolbar's Options menu or the app lacks microphone permission.
Check the command line
When a script misbehaves, test the simplest case first:
screencapture ~/Desktop/test.png
ls -l ~/Desktop/test.pngIf the file exists but shows only the wallpaper, the permission is missing. If no file appears, check that the folder exists and that you can write to it.
You can also inspect the defaults you changed earlier:
defaults read com.apple.screencaptureTo undo a custom save location or format, delete the key and restart the interface process:
defaults delete com.apple.screencapture location
defaults delete com.apple.screencapture type
killall SystemUIServerIf a key was never set, defaults delete reports an error. That error is harmless.
Other quick checks
- Recording will not stop: click the Stop button in the menu bar, or press Command-Control-Escape.
- Thumbnail never appears: it can be turned off under Options by clearing Show Floating Thumbnail. The file is still saved.
- Capture missing from Desktop: check the save location in Options. It may point to Documents, Clipboard, or a custom folder.
Exercise
A coworker runs screencapture ~/Desktop/a.png from Terminal. The file is created, but it shows only the desktop wallpaper and none of the open windows. What is wrong, and how do they fix it?
Show answer
Terminal does not have Screen Recording permission. They should open System Settings, go to Privacy and Security, then Screen Recording, turn on Terminal, and quit and reopen Terminal before trying again.
Exercise
Shift-Command-4 does nothing, but Shift-Command-5 opens the toolbar. Where do you look first?
Show answer
Open System Settings, then Keyboard, then Keyboard Shortcuts, then Screenshots, and check that the shortcut for capturing a selected portion is turned on and not reassigned to another action.