add a small script in /etc/profile.d/dbus.sh to export DBUS_SESSION_BUS_ADDRESS
authorStephane Desneux <stephane.desneux@open.eurogiciel.org>
Thu, 23 Oct 2014 11:21:39 +0000 (13:21 +0200)
committerAdrian Szyndela <adrian.s@samsung.com>
Fri, 19 Feb 2016 10:09:56 +0000 (11:09 +0100)
commit5b56e6d57d43bcb2eb762959203c292d5bb03414
tree078b34d7d83689d6d67ab167efc4dce707dc46da
parente77f016eedb6ac43c60d1c1aa432695954197327
add a small script in /etc/profile.d/dbus.sh to export DBUS_SESSION_BUS_ADDRESS

If the dbus session address is not defined, this small script will try to
pick the address from the environment of the systemd --user process for the current
user.

Typically, this allows to log on a target through ssh, then run su - <user> and
have the same environment as the shells inside the user session.

Change-Id: Id6133077bf9943c4203f7d993b8942dc1455bef5
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
packaging/dbus.sh [new file with mode: 0644]
packaging/dbus.spec