logoalt Hacker News

breppp11/04/20252 repliesview on HN

It always seemed weird to me when people call shell binaries from the middle of a desktop app. What's wrong with finding the actual OS API instead?


Replies

jeroenhd11/04/2025

I tried to find the correct API for getting the current MDM enrollment status on macOS but I can't find anything other than people suggesting command line tools. Unless you're an MDM application yourself, I don't think there is an official API.

show 1 reply
IshKebab11/04/2025

It's a lot harder, and for these sort of things maybe not even possible.

But yeah generally it is better if you can do it.