You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
360 B
13 lines
360 B
# DBus session bus over SSH with X11 forwarding
|
|
[ -z "$SSH_CONNECTION" ] && return
|
|
[ -z "$DISPLAY" ] && return
|
|
[ "${DISPLAY:0:1}" = ":" ] && return
|
|
[ "$SHLVL" -ne 1 ] && return
|
|
|
|
export GDK_BACKEND=x11
|
|
|
|
eval `dbus-launch --sh-syntax`
|
|
|
|
[ -z "$DBUS_SESSION_BUS_PID" ] && return
|
|
setsid -f /usr/libexec/dbus-1/dbus-kill-process-with-session "$DBUS_SESSION_BUS_PID"
|