pallotron / yubiswitch

OSX status bar application to enable/disable Yubikey Nano

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Input Monitoring" permission required

passaro opened this issue · comments

YubiSwitch 0.16 was not working on my Mac (M1 Pro, macOS 12.6), even after double checking product&vendor ids, uninstalling, and making sure to set the Accessibility permissions.
I noticed this message in the logs:

com.pallotron.yubiswitch.helper[9168]: Failed to open HID device, error: -536870174

With a bit of googling, I found that the error should be kIOReturnNotPermitted and got to this post: https://nachtimwald.com/2020/11/08/macos-iohidmanager-permission-issue/

Their solution (for a different device/app) also worked for me: allowing “Security & Privacy” -> Privacy -> “Input Monitoring” for YubiSwitch (in addition to "Accessibility" as mentioned in README).

Instead of filing an issue, send a PR with the addition to README.md

As well as adding it to the README I'll take a look and see if we can explicitly request the permission or check to see if the permissions are valid.

I wonder if some of the issue is the change in signing or notarising 🤷

Hmm this is weird, there is no entry in the "Input Monitoring" on either of my devices (both M1, both 12.6) and it works perfectly.

I wonder if there are certain settings or environments which need this extra permission 🤔

I had the same issue, went through same steps of uninstalling and reinstalling as @passaro , and allowing input monitoring fixed this for me - macos 12.5.1, MacBook Pro (16-inch, 2019)

I had the same issue and allowing input monitoring fixed it for me. I simultaneously upgraded Yubiswitch to the latest version and changed my Yubikey to a FIPS version, so two changes that could potentially be related.

  • MacOS 13.3.1
  • MacBook Pro 13-inch M1
  • Yubikey 5C Nano FIPS

@davidrothera Same - I'm on the latest Yubiswitch (0.16) on both of My M1 MacBook Pros. Running macOS 13.5 and now 13.6. I don't need anything in Input Monitoring, but Yubiswitch seems to work just fine. 🤔