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

Option to disable automatic request of permissions in macOS #462

Closed
GaurangTandon opened this issue Jan 10, 2023 · 1 comment
Closed

Option to disable automatic request of permissions in macOS #462

GaurangTandon opened this issue Jan 10, 2023 · 1 comment
Labels
DONE Implementation is done, but not yet merged into master

Comments

@GaurangTandon
Copy link

Since v2.3.0 nut.js automatically requests permissions for screen recording and accessibility. I believe this is a useful addition for many use cases. However,

  1. many apps do not need screen recording permissions, so the extra permission dialog is unexpected.
  2. many apps request permissions at a specific time, not necessarily when the app starts. For example, the permission is requested before/after user authentication.

I have switched to v2.2.0 for now. I might be wrong, but I could not find an option to disable the automatic permission request dialog box in macOS in v2.3.0. So I am posting this issue as a "Issue: Question". If such an option does not exist, please consider providing it.

@s1hofmann
Copy link
Member

Hi @GaurangTandon 👋

the next release will behave differently and only request permissions if you actually use the respective functionality. So e.g. clicking a mouse button will check if the required accessibility permission is granted and if not, request it.

@s1hofmann s1hofmann added the DONE Implementation is done, but not yet merged into master label Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DONE Implementation is done, but not yet merged into master
Projects
None yet
Development

No branches or pull requests

2 participants