| 1 |
# $Id:$ |
| 2 |
# In order to activate the session bus at X session launch |
| 3 |
# simply place use-session-dbus into your /etc/X11/Xsession.options file |
| 4 |
# |
| 5 |
|
| 6 |
STARTDBUS= |
| 7 |
DBUSLAUNCH=/usr/bin/dbus-launch |
| 8 |
|
| 9 |
if has_option use-session-dbus; then |
| 10 |
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && [ -x "$DBUSLAUNCH" ]; then |
| 11 |
STARTDBUS=yes |
| 12 |
fi |
| 13 |
fi |
| 14 |
|
| 15 |
if [ -n "$STARTDBUS" ]; then |
| 16 |
# Note that anything that is D-Bus-activated between here and |
| 17 |
# 95dbus_update-activation-env will not have the complete environment |
| 18 |
# set up by Xsession.d, unless the Xsession.d snippet that sets the |
| 19 |
# environment variable also calls dbus-update-activation-environment. |
| 20 |
# See <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815503> |
| 21 |
eval $($DBUSLAUNCH --exit-with-session --sh-syntax) |
| 22 |
fi |