quicksilver / Quicksilver

Quicksilver Project Source
http://qsapp.com
Apache License 2.0
2.73k stars 285 forks source link

"Input Monitoring" required for Triggers to work. #2684

Closed pjrobertson closed 2 years ago

pjrobertson commented 2 years ago

@debugDS says:

I had to add Quicksilver also to Input Monitoring for Triggers to work.

Originally posted by @debugDS in https://github.com/quicksilver/Quicksilver/issues/2545#issuecomment-1077700041

pjrobertson commented 2 years ago

Also see: https://github.com/quicksilver/Quicksilver/issues/2545#issuecomment-1078092153

It appears that this is a macOS 10.15+ feature. We need to request access, as per: https://stackoverflow.com/questions/58670785/which-api-is-behind-the-privacy-feature-input-monitoring-in-the-security-syste

if #available(macOS 10.15, *) {
    // below requests "Input Monitoring"
    IOHIDRequestAccess(kIOHIDRequestTypeListenEvent)
    // below requests "Accessibility"
    IOHIDRequestAccess(kIOHIDRequestTypePostEvent)
}
pjrobertson commented 2 years ago

We're unable to reproduce this issue on macOS 12.0, so I will close this now.