(Sorry, I posted this before but didn't revise the Subject line) I have a bit of a problem with Lion and the way I used the System Library and Preferences folder.
It looks like this is a better/best way to solve the issue. >SMJobBless demonstrates how to embed a privileged helper tool in an >application, how to securely install that tool, and how to associate >the tool with the application that invokes it. >SMJobBless uses ServiceManagement.framework that was introduced in >Mac OS X v10.6 Snow Leopard. >As of Snow Leopard, this is the preferred method of managing >privilege escalation on Mac OS X and should be used instead of >earlier approaches such as BetterAuthorizationSample or directly >calling AuthorizationExecuteWithPrivileges. With Lion, as you know, the System Library is now hidden and privileges are on the root level. On my apps, I used a .plist in the /Library/Preferences folder to store authorization info. IN RS it's the SharedPreferences folder so I used it, naturally. Now it's "not so shared". =) The problem it gives my apps is that one can authorize, but it's not persist between sessions, so they have to continually reauthorize. On the NUG list, there was an advice to use this AppleScript, and I know I don't have Lion (yet), but I couldn't get it to work. All I want to do is write to the /Library/Preferences folder and continue my current system. I'll change my methodology but I find it real confusing on peoples advice about where is the SharedPreferences folder list with Lion. Apple doesn't really say anything. I don't see RS changing the location of the SpecialFolder.SharedPreferences. So, I need to write to it. As MBS, can you include this SMJobBless thing? It seems to be the secure and right way to write to the SharedPreferences folder. Or maybe I'm wrong about this. Set me straight. Garth Hjelte Sampler User _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
