8b0805
# DBus session bus over SSH with X11 forwarding
8b0805
[ -z "$SSH_CONNECTION" ] && return
8b0805
[ -z "$DISPLAY" ] && return
01b117
[ "${DISPLAY:0:1}" = ":" ] && return
01b117
[ "$SHLVL" -ne 1 ] && return
8b0805
01b117
export GDK_BACKEND=x11
01b117
01b117
eval `dbus-launch --sh-syntax`
01b117
01b117
[ -z "$DBUS_SESSION_BUS_PID" ] && return
01b117
setsid -f /usr/libexec/dbus-1/dbus-kill-process-with-session "$DBUS_SESSION_BUS_PID"