get-windows icon indicating copy to clipboard operation
get-windows copied to clipboard

Allow opting out of triggering access dialogs

Open sindresorhus opened this issue 4 years ago • 6 comments

https://github.com/sindresorhus/active-win/pull/67

sindresorhus avatar Nov 02 '20 18:11 sindresorhus

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.

wrgoto avatar Jan 18 '21 22:01 wrgoto

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 avatar Jan 26 '21 01:01 achuinard

@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.

wrgoto avatar Jan 27 '21 23:01 wrgoto

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.

achuinard avatar Jan 28 '21 00:01 achuinard

See: https://github.com/sindresorhus/active-win/pull/96

wrgoto avatar Jan 28 '21 01:01 wrgoto

@sindresorhus bump https://github.com/sindresorhus/active-win/pull/96

wrgoto avatar Feb 04 '21 17:02 wrgoto