Skip to content

Update sap_privileges_change_permissions.zsh to support Privileges 2#203

Merged
jordywitteman merged 1 commit intoroot3nl:masterfrom
mbulmer-addepar:patch-1
Dec 16, 2024
Merged

Update sap_privileges_change_permissions.zsh to support Privileges 2#203
jordywitteman merged 1 commit intoroot3nl:masterfrom
mbulmer-addepar:patch-1

Conversation

@mbulmer-addepar
Copy link
Copy Markdown
Contributor

@mbulmer-addepar mbulmer-addepar commented Dec 13, 2024

Updated helper script to support changes introduced in Privileges 2:

  • Update path for sap_privileges_cli to new location for PrivilegesCLI
  • Added variable for the current user's uid
  • Update change permissions command to utilize launchctl asuser "$uid"

Note: This will break compatibility with Privileges 1.x due to the change in the path to the PrivilegesCLI tool.
Some extra logic could be added to first check for the version of Privileges that is installed and set the path to sap_privileges_cli accordingly, but it's easy enough to change the path back and the script will still function as expected.

Updated helper script to support changes introduced in Privileges 2:

- Update path for `sap_privileges_cli` to new location for `PrivilegesCLI`
- Added variable for the current user's `uid`
- Update change permissions command to utilize `launchctl asuser "$uid"`

Note: This *will* break compatibility with the OG Privileges app.
@jordywitteman
Copy link
Copy Markdown
Contributor

Awesome thanks @mbulmer-addepar!

@jordywitteman jordywitteman merged commit 3509d93 into root3nl:master Dec 16, 2024
@mbulmer-addepar mbulmer-addepar deleted the patch-1 branch December 16, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants