I'm writing a program that shouldn't be stopped automatically by the user. Is there a way to write code so that the UI of the background allowed item in the login item cannot be manipulated by the user? Any hints are appreciated.
General > Login Items > Allow in background item to prevent users from controlling it?
I looked for MDM, but I don't know how to apply it to the app.
I looked up about MDM, but I don't know.
somebody help me~~
I'm writing a program that shouldn't be stopped automatically by the user.
Do you mean automatically (?) or manually ?
There is a general principle, that you cannot forbid a user to stop an app.
What do you precisely forbid user to do ?
Is there a way to write code so that the UI of the background allowed item in the login item cannot be manipulated by the user?
Yes, but only in managed environments. This is in line with Apple’s general policy of giving normal users full control over their machines.
In managed environments the site admin can use MDM to deploy a payload to prevent the user from disabling login items. What was that called again… oh, here it is… it’s the com.apple.servicemanagement payload.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"