rvaiya / warpd

A modal keyboard-driven virtual pointer
MIT License
2.85k stars 126 forks source link

Option -l would freeze macOS when regranting privacy permission #207

Closed BerginJay closed 1 year ago

BerginJay commented 1 year ago

When using the option -l in the command line, warpd would prompt "Waiting for accessibility permissions", but the permission had already been granted. Warpd would stop at this stage, and there would be no other output. When opening the privacy settings and trying to regrant permission (i.e., uncheck the check box of warpd and try to click it again), the system would stop responding to keyboard and the mouse can only move but not click. The check box is unchecked at this moment. Since the system stops responding to mouse clicks, there is nothing one can do but shut down the system.

System: macOS 12.6.1 warpd version: v1.3.5 Installation: build from source

prolificprole commented 1 year ago

Are you upgrading? Did you run sudo tccutil reset Accessibility first?

BerginJay commented 1 year ago

I'm not upgrading from an old version. After running sudo tccutil reset Accessibility and regrant the permission, now using the option -l would cause segmentation fault. I had run launchctl unload /Library/LaunchAgents/com.warpd.warpd.plist && launchctl load /Library/LaunchAgents/com.warpd.warpd.plist and launchctl kickstart -k gui/$UID/com.warpd.warpd, and reboot.

rvaiya commented 1 year ago

Can you try the latest commit?

BerginJay commented 1 year ago

Bravo! I tried the latest commit, and it works perfectly now! Thanks!