dbus/SOURCES/ssh-x-forwarding.sh
2021-09-09 15:54:52 +00:00

8 lines
229 B
Bash

# DBus session bus over SSH with X11 forwarding
[ -z "$SSH_CONNECTION" ] && return
[ -z "$DISPLAY" ] && return
[ "$SHLVL" -gt 1 ] && return
GDK_BACKEND=x11; export GDK_BACKEND
eval $(dbus-launch --sh-syntax --exit-with-session)