mtgap icon indicating copy to clipboard operation
mtgap copied to clipboard

On macOS, Accessibility Access keeps on popping up

Open Mulugruntz opened this issue 4 years ago • 0 comments

I have macOS 10.14. The first day I used mtgap, it worked fine. But today, it asked for this accessibility permissions... again. If I click on Open System Preferences, it reopens the same popup, without even waiting for the system preferences to be open and updated. If I click on Deny, it reopens immediately. For now, I couldn't find a way to close this popup. image

To be noted: It says that main wants the access. Program mtgaprotracker already had the access, but not main (without icon). Now, they both have it, but the problem still persists. image

I think there's an issue there: https://github.com/Razviar/mtgap/blob/029f88f6cb70af4e1eb9a06388e64333dfa10520/src/app/permission_manager.ts#L34-L38

I have no knowledge of Electron, but in the docs it shows a different usage https://www.electronjs.org/docs/api/system-preferences#systempreferencesistrustedaccessibilityclientprompt-macos The return value should at least be read to know if the user gave the Accessibility, right?

This is called there: https://github.com/Razviar/mtgap/blob/029f88f6cb70af4e1eb9a06388e64333dfa10520/src/main.ts#L54-L63

Mulugruntz avatar May 25 '21 14:05 Mulugruntz