Skip to content
0

security-warning-prompt

When you see the macOS alert "Ghostty.app" would like to access data from other apps, it is almost always triggered by a program running inside the terminal, rather than the Ghostty application itself. Because Ghostty is a terminal emulator, macOS attributes any request made by a shell script or CLI tool (like ls, git, or brew) to the parent app, which is Ghostty.

Why this message appears

  • CLI Tool Activity: A command you ran (e.g., trying to list files in a protected folder or using a tool like Homebrew) requested access to restricted data.
  • Lack of Permissions: Your shell (running inside Ghostty) needs permission to read directories or files in protected locations like your Desktop, Documents, or external drives.
  • Security Features: macOS uses these pop-ups to ensure you are aware when an app tries to reach beyond its basic sandbox.

How to manage this

If you find these pop-ups repetitive or want to ensure Ghostty works smoothly, you can adjust your system settings:

  1. Grant Full Disk Access: This is the most common fix. Go to System Settings > Privacy & Security > Full Disk Access and toggle the switch for Ghostty to "On".
  2. Reset Permissions: If you accidentally clicked "Don't Allow" and need to reset the prompt, you can run the following command in a different terminal: tccutil reset All com.mitchellh.ghostty
  3. Specific Folder Access: Alternatively, check System Settings > Privacy & Security > Files and Folders to see if Ghostty has been denied access to specific locations like your Downloads or Desktop.
最近更新