summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2011-03-08 16:52:06 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-03-15 18:16:34 +0000
commitca3c4e31c0a93976f7fc4d20323c6995d28c8f7b (patch)
treed75c81aa961c3f0ccd8b47db9cd0b652ed79458d /tools
parente77e5c7c6982e7b0ec167a812d5eae5082193a52 (diff)
downloadtelepathy-glib-ca3c4e31c0a93976f7fc4d20323c6995d28c8f7b.tar.gz
with-session-bus.sh: set DBUS_SESSION_BUS_PID, like dbus-launch does
This isn't directly useful for Telepathy, but is useful if you're debugging the dbus-daemon itself. Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/with-session-bus.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/with-session-bus.sh b/tools/with-session-bus.sh
index cfedb5b9d..b3038cd9e 100755
--- a/tools/with-session-bus.sh
+++ b/tools/with-session-bus.sh
@@ -79,6 +79,8 @@ fi
e=0
DBUS_SESSION_BUS_ADDRESS="`cat $me-$$.address`"
export DBUS_SESSION_BUS_ADDRESS
+DBUS_SESSION_BUS_PID="`cat $me-$$.pid`"
+export DBUS_SESSION_BUS_PID
if [ -n "$WITH_SESSION_BUS_FORK_DBUS_MONITOR" ] ; then
echo -n "Forking dbus-monitor $WITH_SESSION_BUS_FORK_DBUS_MONITOR_OPT" >&2