Ventura OS: Cannot run app with admin privilege

do shell script quoted form of "~/ddsds.app/Contents/MacOS/ddsd" with administrator privileges

App is not responding, it is launched ie Finder icon is shown but UI is not shown.

     if (!SMJobSubmit(kSMDomainSystemLaunchd, (__bridge CFDictionaryRef)job, m_auth, &error))

App is not responding, it is launched ie Finder icon is shown but UI is not shown.

Same piece of code works on BigSur and Monterey

App is not responding, it is launched ie Finder icon is shown but UI is not shown.

Running GUI apps as root has never been supported. I’m surprised that it’s worked up until now. In general, we recommend that you factor the privileged operations out of your GUI app into a separate program and run just that program as root. If you post details about what privileged operations you’re trying to perform, I’d be happy to offer more specific advice

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Ventura OS: Cannot run app with admin privilege
 
 
Q