Skip to content

CFPreferences problem with user scripts #4

@jessepeterson

Description

@jessepeterson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions