summaryrefslogtreecommitdiff
path: root/roles/tools/files/ssh/rc
blob: 35b7d342e713230b7124a0e119c27d54022c44e2 (plain) (blame)
1
2
3
4
5
6
7
8
#!/bin/bash

if [ -n "$DISPLAY" ]; then
  export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
  read protocol cookie
  xauth remove $DISPLAY
  xauth add $DISPLAY "$protocol" "$cookie"
fi