Provide option to disable default dbus connection
When using GTK, there is always an open connection to the dbus socket during the lifetime of the application process.
Building a sandboxed application based on GTK, I am trying to find an appropriate way to disable this dbus connection, as its availability would mean a trivial sandbox escape.
I was not able to locate any information about any options to disable the use of DBus in GTK in the documentation.
Is there any way to prevent the use of dbus other then just blocking the file access to the socket as most sandboxed applications do. While blocking the socket works just fine, I would prefer the avoid the connection attempt in the first place.
If there is not yet any intended option to disable dbus, perhaps it would be possible to implement it? Other features such as a11y support can simply be disabled with the NO_AT_BRIDGE environment variable, therefore I would hope for a similar option in regards to DBus.
Thank you