Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for user space TCC modifications #64

Closed
wants to merge 3 commits into from
Closed

Support for user space TCC modifications #64

wants to merge 3 commits into from

Conversation

tnarik
Copy link
Contributor

@tnarik tnarik commented Dec 7, 2023

Added support for -u and --user
Fixed support for reset action (by allowing additional "unknown" parameters and using an absolute path for invocation of the native tool).
Modernised string interpolation from str.format and the modulo operator to f-strings.

* Added support for `-u` or `--user` so that user specific TCC database can be modified.
* `-u` without parameters will attempt modifications of the current user.
* Username is checked and, if not existing in the system, raised as an error with a hint.
* Renamed service to default_service for clarity (as `global service` is set from arguments).
* Normalised all help strings to NOT end in ".", matching the default `-h` string format.
* Moved from `str.format()` and modulo operator (`%`) to f-strings.
* Error output now goes to stderr.
* Fixed behaviour for ACTION = reset, by ALLOWING unknown arguments to be passthrough.
* Fixed behaviour for ACTION = reset, by using the absolute path to /usr/bin/tccutil, so that there is no clash if using wrapper scripts (such as Homebrew does).
* Updated README.md information
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