get-windows
get-windows copied to clipboard
Allow opting out of triggering access dialogs
https://github.com/sindresorhus/active-win/pull/67
This could be really helpful to me. Is it also possible to opt-out of the screen recording permission if we do not need the title? I'm not familiar with Swift, but would be happy to sponsor the change if possible.
PR #67 was a good start for this but seems to be abandoned. I (am trying to) use this library in a setInterval
and it's totally unusable it its current state.
@achuinard We use active-win in a setInterval
type behavior. Before triggering any interval behavior, it helps to ask for macOS permissions upfront. You might want to take a look at:
https://github.com/karaggeorge/macos-accessibility-permissions https://github.com/karaggeorge/mac-screen-capture-permissions
I'm going to work on getting something like PR #67 but maybe just limited to the screen recording permissions.
I, too, am using setInterval with a simple fork that removes the accessibility check, since I don't need the screen title, just the app name.
See: https://github.com/sindresorhus/active-win/pull/96
@sindresorhus bump https://github.com/sindresorhus/active-win/pull/96