Builder doesn't propagate the env var with the AT-SPI bus address from the host into the sandbox
In GTK 4 projects, this leads to a disastrous outputs full of CRITICALS that mention not being able to acquire the accessibility bus address:
From #gnome-newcomers
on IRC:
ebassi: The AT_SPI_BUS_ADDRESS environment variable should be set with the accessibility bus address from outside the sandbox; otherwise, the `org.a11y.Bus` name must be available
ebassi: There is, in theory, a GSettings key to check if the accessibility support is disabled, but it's meh
ebassi: Especially inside the sandbox
ebassi: Because it'll be enabled outside the sandbox, so we're going to look at that setting, and then fail
Workarounds for this
Add the --talk-name=org.a11y.Bus
permission into the manifest, or set GTK_A11Y=none
in the environment