orion / rpms / dbus

Forked from rpms/dbus a year ago
Clone
45b113
# DBus session bus over SSH with X11 forwarding
45b113
[ -z "$SSH_CONNECTION" ] && return
45b113
[ -z "$DISPLAY" ] && return
7e0b64
[ "${DISPLAY:0:1}" = ":" ] && return
7e0b64
[ "$SHLVL" -ne 1 ] && return
45b113
7e0b64
export GDK_BACKEND=x11
7e0b64
7e0b64
eval `dbus-launch --sh-syntax`
7e0b64
7e0b64
[ -z "$DBUS_SESSION_BUS_PID" ] && return
7e0b64
setsid -f /usr/libexec/dbus-1/dbus-kill-process-with-session "$DBUS_SESSION_BUS_PID"