Technology

dontallow Open-Source Utility Automatically Dismisses macOS Local Network Prompts

· GlobeWire Daily Tech Desk · Source: github.com

2 min read

Key takeawaysAn open-source utility named 'dontallow' has been published to automatically dismiss the macOS local network permission prompt by programmatically selecting 'Don't Allow'. According to the project documentation, the tool aims to address repetitive prompts on macOS Sequoia and later versions where certain applications trigger the dialog repeatedly.
dontallow Open-Source Utility Automatically Dismisses macOS Local Network Prompts

Image: GitHub · Photo source · Resized and letterboxed to 16:9; no AI generation

An open-source utility named 'dontallow' has been published to automatically dismiss the macOS local network permission prompt by programmatically selecting 'Don't Allow'. According to the project documentation, the tool aims to address repetitive prompts on macOS Sequoia and later versions where certain applications trigger the dialog repeatedly.

Background on macOS Local Network Prompts

Starting with macOS Sequoia, the operating system displays a prompt asking users whether to allow an app to find devices on local networks. While intended to be remembered, the decision often fails to persist for specific software:

  • Chromium Browsers: Applications like Chrome, Brave, Edge, and Arc copy their app bundles into random temporary folders at launch to support in-place updates. macOS ties the local network decision to that random path, causing every launch to appear as a brand-new application and accumulating duplicate entries in Privacy settings.
  • Versioned Install Paths: Software installing into version-specific directories generates a new settings row with each update.
  • Misattributed Prompts: The operating system occasionally attributes the dialog to apps that are not actively running.

How dontallow Functions

Reported as consisting of two short Swift files with no external dependencies, dontallow operates via the macOS Accessibility API to monitor for the system dialog owned by UserNotificationCenter. When the prompt appears, the utility checks user-defined allowlists and active pause durations before performing an accessibility action to click 'Don't Allow'.

  • Resource Usage: The developer states the agent consumes zero CPU while idle and survives system reboots through a per-user launchd agent.
  • Notifications: Each dismissal generates a notification containing the app name and a command to pause the utility if needed.
  • Exceptions and Allowlists: Users can pause the utility temporarily using `dontallow pause 10m` to grant permissions manually, add applications to an allowlist via `~/.config/dontallow/allowlist`, or set a grace period using `~/.config/dontallow/grace`.

Requirements and Limitations

The documentation notes several technical specifics and current constraints:

  • Compatibility: Building requires macOS 13 or later, while the prompt itself targets macOS 15 Sequoia and later. It supports both Apple Silicon and Intel architectures using Apple's Command Line Tools without requiring Xcode.
  • Localization: Currently restricted to English-localized macOS builds, as the text matcher relies on specific dialog phrasing and button titles.
  • Accessibility Permissions: The tool requires manual configuration in System Settings under Privacy & Security > Accessibility to function, and updates to the binary currently require re-adding the permission due to code signature changes.

Verification

Users interested in reviewing the source code, unit tests, or integration instructions can inspect the repository directly on GitHub under the `johncassil/dontallow` page.

Share this article
Read the original source: johncassil/dontallow: Auto-dismiss the macOS 'Allow X to find devices on local networks?' prompt. Presses Don't Allow for you, zero CPU idle, survives reboots. - GitHub

AI-assisted reporting; source claims are attributed and have not been independently verified.

About the author

GlobeWire Daily Tech Desk — AI-assisted news based on attributed published sources.

More to read