browser: copy sndiod cookie

This commit is contained in:
Lucas 2020-11-22 13:57:26 +00:00
parent 8de76cf8b1
commit 7580a2b588

View File

@ -22,6 +22,10 @@ tor-browser)
esac
dpy=${DISPLAY:-:0}
xauth extract - "$dpy" |
ssh -l "$user" localhost -- \
xauth merge - '&&' env DISPLAY="$dpy" "$browser" "$@"
{
dd if=~/.sndio/cookie bs=1 count=16
xauth extract - "$dpy"
} | ssh -l "$user" localhost -- \
dd of=.sndio/cookie bs=1 count=16 '&&' \
xauth merge - '&&' \
env DISPLAY="$dpy" "$browser" "$@"