Gentoo Archives: gentoo-user

From: Pavel Volkov <negaipub@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] DBus and network namespaces
Date: Sun, 27 Oct 2013 18:05:57
Message-Id: 1752276.65OiTjBk8G@melforce
In Reply to: Re: [gentoo-user] DBus and network namespaces by Neil Bothwick
1 On Monday 16 September 2013 08:59:58 Neil Bothwick wrote:
2 > On Sun, 01 Sep 2013 09:50:10 +0400, Pavel Volkov wrote:
3 > > I launch some apps from inside a network namespace in order to force
4 > > them to communicate through my VPN interface only.
5 > >
6 > > But they fail to use DBus then. Some examples of what goes wrong:
7 > > 1. Chromium cannot launch system proxy settings dialog.
8 > > 2. Most apps from KDE SC crash right away.
9 > > 3. No app can use ibus input methods.
10 >
11 > Have you tried exporting DBUS_SESION_ADDRESS within the namespace?
12
13 I tried it now.
14 The name is DBUS_SESSION_BUS_ADDRESS.
15 Still no luck:
16
17 $ ktorrent
18 unnamed app(19646): KUniqueApplication: Cannot find the D-Bus session server:
19 "Failed to connect to socket /tmp/dbus-CM8HloGVTk: Connection refused"
20
21 unnamed app(19645): KUniqueApplication: Pipe closed unexpectedly.