dbus-run-session: remove various extra variables from the environment
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 5 Jun 2013 18:58:33 +0000 (19:58 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 23 Aug 2013 10:41:16 +0000 (11:41 +0100)
commit5ee72fe2e1e8fbb7ae09174e8df3ca28228ddd9b
treee461cda690431a6a4492241a3e0bd0f39401896c
parent412538b3b9fb424c3af313815c3928a9ec221ad7
dbus-run-session: remove various extra variables from the environment

DBUS_SESSION_BUS_PID is not mandatory to set, but we should unset it
if present, since it points to a different session's bus. Likewise for
DBUS_SESSION_BUS_WINDOWID.

Similarly, if DBUS_STARTER_BUS_TYPE and DBUS_STARTER_ADDRESS
are set (as they would be under GNOME Terminal 3.8, see
<https://bugs.freedesktop.org/show_bug.cgi?id=63119>) then they
are likely to point to a different session's bus.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39196
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Colin Walters <walters@verbum.org>
doc/dbus-run-session.1.xml.in
tools/Makefile.am
tools/dbus-run-session.c