Make it possible to run functional GNOME apps from bst shell
Today I tried running two GNOME apps from a bst shell:
- gnome-control-center was rather spectacularly broken, with basically all of the panels missing (probably because it heavily relies on D-Bus)
- epiphany sort of worked, but is not useful as there is no network access inside the bst shell
I also see an impressive spew of warnings when running Epiphany: no access to the accessibility bus, no access to upowerd, no access to libsecret, and several warnings and criticals that indicate epiphany itself isn't properly prepared to handle these cases.
For BuildStream to be actually usable for GNOME development will require a running session bus with all the usual GNOME services, at the very least. Flatpak has solved these problems by selectively punching holes in its sandbox to allow host access. Something similar to that might be desirable, or alternatively BuildStream might need to run its own copies of all the standard userland services.
We'll also need name resolution to work: Flatpak solves that by periodically copying /etc/resolv.conf into the sandbox.