Opened 4 years ago

Closed 3 years ago

#5732 closed defect (fixed)

"0 A.D.app would like to receive keystrokes from any application"

Reported by: Krinkle Owned by:
Priority: Must Have Milestone: Alpha 24
Component: Core engine Keywords: macos
Cc: Patch: Phab:D2827

Description

On macOS 10.15 Catalina, the new sandboxing and security features are detecting something potentially unsafe in the function calls from the game.

When I denied the permission, playing a new game seems to work. So either it is something non-essential or perhaps macOS is automatically making it do the right thing (let the function proceed, but only give it local events). If so, then it is probably a relatively easy fix once we find which function causes it and which one Apple wants us to use instead.

Attachments (1)

0ad-keylogger.png (57.0 KB ) - added by Krinkle 4 years ago.
macOS Catalina keylogger security warning

Download all attachments as: .zip

Change History (5)

by Krinkle, 4 years ago

Attachment: 0ad-keylogger.png added

macOS Catalina keylogger security warning

comment:1 by Krinkle, 4 years ago

I found a report of the same error in relation to another program. Leaving this here in case we might be caught by the same root cause:

https://www.emaculation.com/forum/viewtopic.php?t=10439#p64694 https://mace.software/2019/10/28/continuum-two-other-new-apps-bundle-write-support/

new macOS Catalina […] it was discovered that there was a unnecessary privilege used by the SDL2: It was listening to background key presses solely to track state of the caps lock key. Luckily, there was already a patch for this issue in SDL 2.0.10, so updating the SDL2 library (and adjusting some caps lock support code) fixed this problem.

comment:3 by Stan, 4 years ago

Patch: Phab:D2827

comment:4 by wraitii, 3 years ago

Resolution: fixed
Status: newclosed

Upgrade to 2.0.12 done in Phab:rP24257

Note: See TracTickets for help on using tickets.