dbus/SOURCES/ssh-x-forwarding.sh
2021-10-08 10:22:43 +00:00

8 lines
225 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-x11)