Sub topic 14
Fix permission and shortcut problems
This chapter assumes you can already capture the screen with the shortcuts, the Screenshot toolbar, and the screencapture command from earlier chapters. You should also know how to open System Settings and Terminal. Here you will work out why a capture fails and fix it.
Sort the symptom first
Capture problems fall into a few groups. Each group has a different cause, so identify the symptom before changing settings.
| Symptom | Likely cause | Where to look |
|---|---|---|
| Shortcut does nothing, no sound or thumbnail | Shortcut disabled or taken by another app | Keyboard Shortcuts settings |
| Capture works but shows only the wallpaper | Screen recording permission missing for the app that took it | Privacy & Security |
| Recording has no voice | Microphone not selected, or microphone permission denied | Toolbar Options, Privacy & Security |
| Capture is black in one window | Protected content (DRM) or an app that blocks capture | The app itself |
| Files are not where you expect | Save location changed or unavailable | Toolbar Options, `defaults` |
| Capture fails with an error or an empty file | Disk full, folder not writable, or a restriction on the Mac | Disk space, folder permissions, device management |
Shortcuts that do not respond
macOS lets you turn each screenshot shortcut on or off and change its keys. Open System Settings > Keyboard > Keyboard Shortcuts… > Screenshots. You will see entries for the full screen, a selected area, the Screenshot toolbar, and the clipboard variants.
Check these in order:
- Make sure the checkbox next to the shortcut is ticked.
- Look at the key combination shown. If you or a utility changed it, press it as displayed, not as you remember it.
- Click Restore Defaults if the list looks wrong. This resets the shortcuts in this pane.
- Test in a different app. If the shortcut works in Finder but not in one app, that app is intercepting the keys.
Conflicts with other software
Only one program can own a key combination. These are the usual conflicts:
- Screenshot and clipboard utilities. Tools such as CleanShot X or Shottr often offer to take over Shift-Command-3, 4, and 5. If you installed one, check its preferences. Either turn off its shortcut takeover or assign different keys.
- Remote desktop and virtual machine apps. When a remote session has focus, it may send your key presses to the remote machine instead of your Mac. Click outside the session window, or use the app's option to release keyboard capture.
- Other apps with global shortcuts. Launchers, window managers, and keyboard-remapping tools can claim the same combination. Quit them one at a time to find the culprit.
- External keyboards. A Windows layout keyboard swaps some modifier keys. Check Keyboard > Keyboard Shortcuts… > Modifier Keys and confirm that Command is the key you think it is.
Remapping can also be the cause on a laptop. If the Fn key setting makes function keys act as media keys, that does not affect Shift-Command-3, but it does affect any custom shortcut that uses F-keys.
Screen recording permission
The most common fault is a capture that contains only the desktop picture and the app's own windows, with every other app's window missing. macOS does this when the app taking the capture lacks permission to see other apps' windows.
The built-in shortcuts and the Screenshot toolbar are system features and normally do not need this permission. The permission matters for the following:
- Third-party capture and recording apps
- Video call apps sharing your screen
- Terminal, when you run
screencapture
To grant it:
- Open System Settings > Privacy & Security.
- Select Screen & System Audio Recording. On older versions of macOS the entry is called Screen Recording.
- Turn on the switch next to the app. If the app is not listed, click the + button and add it.
- Quit and reopen the app when macOS asks. The permission does not apply to a process that is already running.
Permissions belong to the app that launches the command, not to the command. When you run screencapture from Terminal, you must grant permission to Terminal. If you run it from iTerm2, VS Code's built-in terminal, or a script runner, grant permission to that app instead.
Test from Terminal
This quick test captures the screen without a sound and opens the result. If the image shows only the wallpaper, the app running Terminal lacks permission.
screencapture -x /tmp/permtest.png && echo "exit: $?"
open /tmp/permtest.pngA permission that is stuck in a bad state can be reset for one app. The following command removes the stored decision for Terminal, so macOS asks again the next time:
tccutil reset ScreenCapture com.apple.Terminaltccutil is the command-line tool for the Transparency, Consent, and Control database, which stores these decisions. Replace the bundle identifier to reset another app. Run tccutil reset ScreenCapture with no identifier only if you want to clear every app.
Microphone problems
If a recording has no narration, check three places in order:
- In the Screenshot toolbar, click Options and look under Microphone. The setting must name a real input, not None. Pick the microphone you want, then record a short test.
- Open System Settings > Privacy & Security > Microphone and confirm the app doing the recording is allowed. If you use QuickTime Player, check that it is listed and switched on.
- Open System Settings > Sound > Input and speak. The level meter should move. If it does not, macOS is reading the wrong device, for example a disconnected headset.
The built-in recorder captures your microphone but not the sound your Mac plays. If you need the audio of a video or a meeting in the recording, you need a separate audio-routing tool. Do not look for a setting that does not exist.
A Bluetooth headset can also change behavior. When you connect one, macOS may switch both input and output to it, and the audio quality drops. Choose the input again after connecting.
Black windows and blocked content
Some content cannot be captured on purpose. Streaming video protected by DRM (digital rights management) often appears as a black rectangle in a screenshot or recording, while the rest of the window looks normal. Banking and password apps may also block capture. This is not a permission fault, and you cannot change it in Settings. If you need to show the app, record a window that does not include the protected content.
A Mac managed by an employer or school may also restrict capture through a configuration profile. If a setting is greyed out or a shortcut is disabled and you cannot re-enable it, check System Settings > General > Device Management for profiles. Ask the administrator to change the policy.
Files that go missing
If a capture seems to succeed but you cannot find the file, check where macOS saves it.
- Open the Screenshot toolbar with Shift-Command-5, click Options, and read the Save to section.
- The setting may be Clipboard, in which case no file exists. Paste with Command-V to confirm.
- The setting may point to a folder on an external drive that is not connected, or to a folder that no longer exists.
You can also read the stored location and check that the folder is writable:
defaults read com.apple.screencapture location
ls -ld ~/Pictures/Screenshots
df -h ~defaults read prints the custom location. If it reports that the key does not exist, you are using the default, which is the Desktop. ls -ld shows the folder's owner and permissions. df -h ~ shows free space on your home volume. A full disk makes captures fail silently or save an empty file.
To return to the default location, delete the custom value and restart the service that reads it:
defaults delete com.apple.screencapture location
killall SystemUIServerDo the same for a format you changed by mistake. Delete the type key with defaults delete com.apple.screencapture type, then restart SystemUIServer.
If macOS asks whether Screenshot may access files in Desktop, Documents, or Downloads, or removable volumes, allow it. If you denied it earlier, open Privacy & Security > Files and Folders and re-enable it.
A repeatable checklist
When a capture fails and the cause is not obvious, work through this list from top to bottom. It goes from the cheapest check to the most disruptive one.
- Try the shortcut in Finder to rule out an app conflict.
- Open the Screenshot toolbar with Shift-Command-5. If the toolbar opens, the shortcut system works and the problem is likely a setting.
- Check the Save to option and free disk space.
- Run the Terminal test. If it shows wallpaper only, fix screen recording permission for that app.
- Check the microphone settings if sound is the only problem.
- Restart
SystemUIServer, then log out and back in. - Restart the Mac and check for device management profiles.
Exercise
You run screencapture -x /tmp/permtest.png from iTerm2. The resulting image shows the desktop wallpaper and no windows. You have already granted Screen Recording permission to Terminal. What is wrong and how do you fix it?
Show answer
The permission belongs to the app that launches the command, which is iTerm2, not Terminal. Open System Settings > Privacy & Security > Screen & System Audio Recording, turn on iTerm2, and quit and reopen iTerm2 so the permission applies. Then run the test again.
Exercise
Shift-Command-4 works in Finder but does nothing while a virtual machine window has focus. Which two checks are most likely to resolve it?
Show answer
The virtual machine app is probably sending keys to the guest system. Click outside the VM window to release keyboard capture, or change the VM app's setting that forwards keyboard shortcuts to the guest. If the shortcut still fails everywhere, check the Screenshots list in Keyboard Shortcuts to confirm it is enabled.
Exercise
Your screenshots stopped appearing on the Desktop. Name the command that shows the custom save location and the command that returns to the default.
Show answer
Run defaults read com.apple.screencapture location to see the custom location. Run defaults delete com.apple.screencapture location followed by killall SystemUIServer to return to the default Desktop location.