GIO should not install types whose names don't start with 'g'.
This was causing the xdg-desktop-portal to crash, since it was
also trying to register Xdp types.
When network is not available in the sandbox, there is
no point in reporting accurately about the network
status outside the sandbox. Just return 'no connection'
in this case.