Setting up trusted apps doesn't work without a WindowServer
Closed this issue · 1 comments
hartmantis commented
* chef_gem[AXElements] action install
- install version ~> 6.0 of package AXElements
_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
* mac_app_store_trusted_app[/usr/libexec/sshd-keygen-wrapper] action create
================================================================================
Error executing action `open` on resource 'mac_app_store[default]'
================================================================================
RuntimeError
------------
-------------------------------------------------------------------
The Application that is running AXElements is not trused to control
your computer. A window prompting you to grant permission to the
application should appear right now. Please grant the application
permission to control your computer and try again.
-------------------------------------------------------------------
This is on a brand new OS X machine, after running tccutil but before logging into the GUI. Once again, only in Vagrant somehow...?
hartmantis commented
Switching to a Vagrant box with autologin enabled takes care of this in test. There seems to be no way around it on real machines.