From 7580a2b58810ae90853e7136d31ebaa6c2bf74a7 Mon Sep 17 00:00:00 2001 From: Lucas Date: Sun, 22 Nov 2020 13:57:26 +0000 Subject: [PATCH] browser: copy sndiod cookie --- bin/browser.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/browser.sh b/bin/browser.sh index 04ac6ba..147e860 100644 --- a/bin/browser.sh +++ b/bin/browser.sh @@ -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" "$@"