Skip to content

Fix crash if permissions disabled#1

Merged
aaronkollasch merged 1 commit intomainfrom
fix-permission-crash
Nov 23, 2021
Merged

Fix crash if permissions disabled#1
aaronkollasch merged 1 commit intomainfrom
fix-permission-crash

Conversation

@aaronkollasch
Copy link
Copy Markdown
Collaborator

Recent versions of macOS require Security/Accessibility permissions for CGEventTapCreate, causing Jitouch to crash if the Jitouch binary is run and those permissions aren't enabled.

This commit prevents calling CGEventTapEnable with a null eventTap. Instead of crashing, a prompt is automatically shown by macOS to allow Jitouch in System Preferences, allowing the permissions to be granted.

Pull request submitted upstream: #2

@aaronkollasch aaronkollasch merged commit 8c4da39 into main Nov 23, 2021
@aaronkollasch aaronkollasch deleted the fix-permission-crash branch December 28, 2022 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant