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

Don't always try to add Approved label to chromedriver executable on macOS #21

Open
DaniruKun opened this issue Aug 9, 2024 · 0 comments

Comments

@DaniruKun
Copy link

One of the mechanisms used to make sure that after an upgrade, chromedriver is still allowed to run without requiring to manually allow it in Settings is by setting the right label with spctl:

 spctl --add --label 'Approved' $(which chromedriver)

However, there isn't really an obvious way to check if the label is already placed on the executable (especially without annoying the user for Touch ID).

An idea could be to check if the checksum of the chromedriver installation has changed, and only then run the quarantine removal + spctl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant