When using LoginScriptPlugin with a script running as a user that modifies CFPreferences (happens to be a script using pyobjc CFPreferencesApp* APIs) I'm getting odd results that are probably related to cfprefsd caching. I see that there's a warning saying #warning REVIEW: User commands still run in root's session. Perhaps it's related to that. I note that if I kill the (root-running) cfprefsd then my script mostly does the correct thing (running as a postmount-user-* script) in limited testing, but when not doing this the CFPreferencesApp* APIs return stale data.
When using LoginScriptPlugin with a script running as a user that modifies CFPreferences (happens to be a script using pyobjc
CFPreferencesApp*APIs) I'm getting odd results that are probably related tocfprefsdcaching. I see that there's a warning saying#warning REVIEW: User commands still run in root's session.Perhaps it's related to that. I note that if I kill the (root-running)cfprefsdthen my script mostly does the correct thing (running as apostmount-user-*script) in limited testing, but when not doing this theCFPreferencesApp*APIs return stale data.