#1095 Use different library for screen capture permission
Hopefully fixes #1095 while side stepping the issues in https://github.com/karaggeorge/mac-screen-capture-permissions/releases/tag/v2.0.0. This new package doesn't know if it has already asked for permission though, so on initial load, 2 dialogs will pop up. I'm thinking of adding something similar to what the old library had where it saves whether it has already asked before, but wanted to see if it's even necessary to update the package first.
Make sure you have done this:
If someone wants to work on this, make sure you test the change by running npm run dist and try launching the app in the dist folder.
Hmm, not sure why, but just realized that this package doesn't seem to be giving permissions correctly? It'll ask for permissions twice, once when the app is first opened, and another time when the user actually starts a screen recording.
The first one in the screenshot above is the one required to actually capture the screen, and the one below doesn't do anything at all. Might need some help with this one.
For the development and production versions, perhaps?
For the development and production versions, perhaps?
Hmm, I'm not sure what you mean. Lemme write out the steps I did to reproduce this, maybe my comment wasn't clear.
- I removed all apps from having screen capture permissions
- Ran
npm run distto build the app, and installed it - Opened Kap which would then prompt me to give it screen capture permissions
- After I give it permissions and restart the app, the cropper window appears and I can start recording
- When I hit record, another prompt asking for screen capture permissions appears
It shouldn't prompt for a second time, but not sure what I'm doing wrong.