On Monday 16 September 2013 08:59:58 Neil Bothwick wrote: > On Sun, 01 Sep 2013 09:50:10 +0400, Pavel Volkov wrote: > > I launch some apps from inside a network namespace in order to force > > them to communicate through my VPN interface only. > > > > But they fail to use DBus then. Some examples of what goes wrong: > > 1. Chromium cannot launch system proxy settings dialog. > > 2. Most apps from KDE SC crash right away. > > 3. No app can use ibus input methods. > > Have you tried exporting DBUS_SESION_ADDRESS within the namespace?
I tried it now. The name is DBUS_SESSION_BUS_ADDRESS. Still no luck: $ ktorrent unnamed app(19646): KUniqueApplication: Cannot find the D-Bus session server: "Failed to connect to socket /tmp/dbus-CM8HloGVTk: Connection refused" unnamed app(19645): KUniqueApplication: Pipe closed unexpectedly.