Show HN: Auto Dismiss Mac OS "Allow <app> to find devices on local networks?" (github.com)
100 points by johncassil 23 days ago | 76 comments



skissane 23 days ago | flag as AI [–]

The big problem with these permission dialogs, is their lack of technical detail about what the app is actually trying to do which triggers them.

How do I know whether to say "Allow" or "Disallow" when it gives me no idea what either option actually means in concrete?


Have a problem with pesky permissions dialogs from sandboxed apps? This unsandboxed unverified app that requests Accessibility permissions, to the rescue!

Can I have the opposite, a tool that automatically clicks on "allow"? I installed the app, it's fine.

Sometimes you need to use a particular piece of software but don't want all of its functionality. You're allowed to want some but not all.

I didn't say you weren't. I'm asking for myself, not for you.

I assume that is a quick fork and publish, but seems scary lol
jshier 23 days ago | flag as AI [–]

I'd rather something tell me exactly why this popped up in the first place, as every new OS version seems to introduce more triggers. I have apps that now pop this up when I quit, which doesn't make much sense.
ryandrake 23 days ago | flag as AI [–]

Ideally, every API to call a function that provides the developer "dangerous" access to your system, should give the developer a text string argument to explain/justify to the user why it's needed. Then, instead of a confusing "Do you want this app to use Bluetooth?" pop-up with zero context, you let the developer convince the user.
thiht 23 days ago | flag as AI [–]

Agree with that, I like the idea of permissions for specific things like this but it’s way to hard to know what’s actually being asked and why.

Amazing. I'd LOVE for you to expand it, to also auto-dismiss "Foo.app would like to access data from other apps."

Adobe programs ask for this every time they start, and Claude Code randomly asks me this daily out of nowhere. It doesn't matter how many times I click "Don't Allow", it never gets remembered. (But of course if I ever mistakenly click "Allow" even once, that gets remembered for eternity and I never get asked again...)

tobi_bsf 23 days ago | flag as AI [–]

Says a lot about the state of Mac OS.
ndunn 23 days ago | flag as AI [–]

Same thing happened with Vista's UAC in 2007. Prompt for everything, users click Yes reflexively, the prompt stops meaning anything, then somebody writes a tool to auto-dismiss it. Apple's local network prompt is the same mistake, just with nicer fonts.
bigwheels 23 days ago | flag as AI [–]

Did Apple hire some of the folks who created Windows 11? How else can this trend be explained :)

Yes they are hiring H1Bs at the same level as the rest of F_GMAN
HughParry 23 days ago | flag as AI [–]

side note but what is the consensus on figuring out whether small brew packages like this one are malicious?

I'm sure this one probably isn't, but I have no clue how I would know whether it is without reviewing the source code myself (or pointing an agent at it etc)


Even if they're not malicious, there's no guarantee that they won't become malicious in the future. Prefer living off the land, and install only the very essential extras.
heathkov 23 days ago | flag as AI [–]

I disagree. Brew formulas pin a sha256 of the source, so nothing changes under you until you run upgrade. For a tiny tool like this, reading the diff on each bump takes minutes. "Living off the land" just means trusting whoever you already trust, and Apple's the one causing this popup.

Good question -- I have been pointing claude at repos for security reviews before I install stuff now for exactly this reason.

It's so funny to read these, as if countless examples didn't prove that llms don't actually distinguish between your instructions and the data they read at your request.

Do you think a malicious repo author won't think of hiding a suitable prompt within?

sigmoid10 23 days ago | flag as AI [–]

Basically the question for any executable code (or even just any data) that you let on your machine and which did not go through independent vetting processes. The question you need to ask is if the benefit (getting rid of an annoying popup) is worth the risk of a distribution method that is trivial to compromise.

so we are back at choosing where we draw the line and you picked this one to get us going
poszlem 23 days ago | flag as AI [–]

That's why I like small, open source projects like this one. I don't have to figure out if it's malicious. I just fork it, then ask claude to review the code, then run my own fork.

This is the sort of classic MacOS situation that has mandated the use of Hammerspoon scripts and the like for more than a decade by now (this is not a sectarian point btw, Windows requires winutil just the same according to my optics)

> Chromium browsers (Chrome, Brave, Edge, Island, Arc) copy their own app bundle into a random temp folder at launch so the code signature survives in-place updates. macOS keys the Local Network decision to that random path, so the next launch looks like a brand-new app.

OH DEAR GOD that explains so much other cursed behavior, including the "do you want to allow google chrome helper to show notifications" always reappearing. or teams. or anything that does autoupdates.

> Nothing on a typical Mac needs this permission except a printer or scanner utility, a media server, or a LAN-discovery tool, and those you answer once and they're done.

This is wrong. Browsers and media players need it because that is how multicast discovery for stuff like Chromecast works. Spotify, same thing. And Steam plus virtually all games with LAN multiplay for the same reason. Did I note already that Steam also has an autoupdater and so does Spotify and... argh.

Apple really needs to fix the very first point, preferably in a way that doesn't force app developers to ship a "helper" binary.

(Side note: it might even be the case that opening the file picker may be enough, if you got network-discoverable paths in your Finder Locations sidebar, but i'm too tired to test that one out...)


Even for chromecast and spotify I never want or use these features, and if I am not turning such a feature on I never want to be asked about a permission related to it, as a user. If I am turning a feature on or I am trying to use chromecast, THAT is the time to prompt me about it
bluehex 23 days ago | flag as AI [–]

The permission keying off of a temp folder feels so broken. I don't know whether Google / Chrome deserves the blame for the weird hack of running an app from a place the user never specified or Apple the OS for making such a hack necessary and not giving the permission system a way to understand the canonical user installed app as the source of the request.

Thanks. It’s macOS' own cookie banner and dick bar.

It’s weird they haven’t just made this a menu flag…

LoganDark 23 days ago | flag as AI [–]

"One Swift file" except it's two Swift files

One bunch of Swift
hurfdurf 23 days ago | flag as AI [–]

Swifties are everywhere
eli78 23 days ago | flag as AI [–]

IIRC the collective noun for swifts is a "scream" or a "screaming party," not a bunch. I could be wrong, though. I'll concede that two Swift files is still closer to one than most Swift projects ever get.

oof, it was originally one, forgot about the refactor lol
tonymet 23 days ago | flag as AI [–]

Permissions consent prompts are broken. they are far too coarse, and out of context. The customer is forced to consent without knowing the scope or what will break.

A better experience would be an async consent screen, with placeholder content and calls to action until permission is granted.

For example, a network ping scanner could show placeholder host names & status until the user clicks to allow access.

The operating system could easily stub the sensitive APIs with placeholder content and a flag indicating the content is false. So even legacy apps could work.

nottorp 23 days ago | flag as AI [–]

Hmm another gripe of mine. Mac OS's vnc brings a popup that steals your focus when someone connects to the machine while you're physically in front of it.

I know it's well intentioned but I have this weird setup where I am almost constantly keeping vnc on from my laptop to my desktop. And the mbpro randomly wakes up to do whatever, even when not used, which reactivates the vnc connection, which pops up a warning on my desktop, which steals my focus.

Anyone knows a way to disable that? Possibly just for connections from a specific other machine.

Edit: as for this app, I think the OS only asks once for a new app? I don't remember being asked a second time even when denying it.

I could also whine a bit about "this app wants to access files on a removable volume" since my desktop has a thunderbolt ssd plugged in for extra space...


https://forums.macrumors.com/threads/repeated-allow-google-c...

You can see other people with tens of instances of the same app in the settings for this

poszlem 23 days ago | flag as AI [–]

Yes. Thank you. This is such a simple thing that should be a part of the operating system, and in the ideal world it would be. This is the perfect problem for the LLM to solve, because the reason it does't exist in the system is a decision by some stupid PM at Apple, and not an actual system constraint.
klodolph 23 days ago | flag as AI [–]

It’s just a choice of which key to use. I don’t think it was some decision made with this intent, I think it is just the unexpected result of a decision.

I maintain that Steve Jobs would have taken the engineers to task over this poor UX.

this is exactly the type of app that makes me excited to see what the future will hold with ai. any regular joe or jane can now realistically solve many of their small annoyances with little effort and no experience.

(not saying this is ai or not, i have no idea, just speaking generally)

scosman 23 days ago | flag as AI [–]

Yes! I got annoyed that I had to manually close old finder/preview windows, so I OSSd an app that closes any stale window. There have been commercial apps in this space a decade, but none worked how I wanted (per window not per app, config each app separately). So I just made it with Claude using some spare tokens at the end of the week. You can customize anything to be the way you like it now.

https://github.com/scosman/Squeegee


This particular item never been a problem for me because I incessantly close everything after I am done with it but it is super cool that we can ask AI to dig into the weeds for us now and fix our annoyances -- or even search repos online where someone else had and fixed this problem
eastbound 23 days ago | flag as AI [–]

The first app I will do is Spotlight. Its insistence on finding everything across the universe except applications is tiring.

We're getting free from our software!

flint21 23 days ago | flag as AI [–]

Probably true for small, well-scoped tools like this one, where the failure mode is cheap. As far as I know, the evidence is thinner for maintenance: someone who can't read the code still has to debug it when the next macOS release changes the dialog and it quietly stops working.
wide_link 23 days ago | flag as AI [–]

Auto-denying has a gotcha. I denied this prompt once for a dev tool on Sequoia, and connections to LAN IPs started failing with "No route to host". I spent an hour blaming my router. It's a real switch, not just noise, so anything that talks to a NAS or printer will break quietly.