Right. That’s why, when you change these values in System Settings, it offers to quit and relaunch the app.
I just tried toggling a couple of the Privacy & Security > Accessibility switches, and it did not offer to quit and relaunch the apps.
Anyway, that's why I said that I preferred using CGEventTapCreate, that allows me to detect a change in the permission without a relaunch.
Topic:
Accessibility & Inclusion
SubTopic:
General
Tags: