chiark / gitweb /
Merge branch 'anarres-vanilla'
[ian-dotfiles.git] / dot / configs / unpriv-xauth
1 #!/bin/bash
2 set -e
3 cd $HOME
4 tmp=.Xauthority.unprivtmp
5
6 xauth nlist $DISPLAY | \
7 with-lock-ex -w $tmp.fcntllock bash -xec "
8         xauth -f $tmp nmerge -
9         exec </dev/null
10         xauth -f $tmp generate $DISPLAY . untrusted timeout 1000000
11         xauth -f $tmp nlist $DISPLAY
12 " | \
13 HOME=/home/ijackson really -u ijackson xauth nmerge -