Unable to post events on macOS #7269
Labels
Area: Scripting and command line
awaiting-deployment
Code complete; awaiting deployment and/or deployment in progress
bug report
OS: macOS
Description
Currently it is not possible for an application to send keystrokes. SIP prevents any changes to the permissions (#650) so it would be great if you could grant
bash
the permissions to send keystrokes. It would allow us to run tests for the libraryenigo
on macOS (enigo-rs/enigo#141). The library allows sending keystrokes on Linux, Windows and macOS and it is used by virtual keyboards and applications such as RustDesk.Please consider adding
"'kTCCServicePostEvent','/bin/bash',1,2,0,1,NULL,NULL,NULL,'UNUSED',NULL,0,1583997993"
to the
TCC.db
. I guess it would be added toimages/macos/provision/configuration/configure-tccdb-macos.sh
.Platforms affected
Runner images affected
Image version and build link
All versions
Is it regression?
No
Expected behavior
Be able to send events to test the library
Actual behavior
The tests fail, because they lack the permissions to send keystrokes.
Repro steps
CI.yml
workflow.nightly
workflows-> They pass for Linux & Windows but fail on macOS
The text was updated successfully, but these errors were encountered: