How create a Helper tools with SMAppService?

Hi,
Is it possible to create a Helper in Xojo with SMAppService (replacing the AuthorizationMBS class) in order to give sudo rights to the various functions that require them in my Xojo application?

Or is it necessary to use Swift/Xcode to write the Helper and install it in /Library/PrivilegedHelperTools/?
Thanks

What do you want to do? AuthorizationMBS should work fine in the future.

1 Like

Are you sure that’s the library that you’re wanting?

In macOS 13 and later, use SMAppService to register and control LoginItems , LaunchAgents , and LaunchDaemons as helper executables for your app.

IIRC those items are not usually written to run as a super user any more except for very special cases.

It seems that this is the new approach recommended by Apple, and I am indeed seeing more and more recent programs that use “Helpers” and ask for the sudo password to be entered when the app is launched.
Look in your “/Library/PrivilegedHelperTools/” folder.