sindresorhus / get-windows

Get metadata about the active window and open windows (title, id, bounds, owner, etc)
MIT License
783 stars 161 forks source link

feat: add `accessibilityPermission` option #177

Closed kentbetita closed 6 months ago

kentbetita commented 6 months ago

Why

There has been issues with macOS users regarding accessibility permission. The accessibility permission is needed in order to get the complete window title. Apparently, the screenRecordingPermission already handles this concern so there is no need for the accessibility permission. To fix this we could just update the if condition but just in case, this PR just adds a new option accessibilityPermission.

Changes

Related

sindresorhus commented 6 months ago

If it's actually not needed, I prefer to just remove it.

kentbetita commented 6 months ago

Submitted the PR #178 for your review @sindresorhus. Thanks.