diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2012-01-19 18:33:59 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2015-02-26 12:59:35 +0000 |
commit | 2c1c4a78b751faf6292483f0e4cda8bbdb283d2a (patch) | |
tree | b34db282f7dfb21e52be02a1ab894366d697a9fd | |
parent | 27488975a61858bbaf72047838074389566e2136 (diff) |
Silence xauth warning emitted when running startx
Avoid a "xauth: file /home/jon/.serverauth.nnnn does not exist" warning when
running startx, it just causes confusion and alarm
xauth -q doesn't silence this warning, so ensure an empty auth file exists before
running xauth
Let's not use 2>/dev/null as we will want to see other errors from xauth
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r-- | startx.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -271,6 +271,7 @@ if [ x"$enable_xauth" = x1 ] ; then XCOMM create a file with auth information for the server. ':0' is a dummy. xserverauthfile=$HOME/.serverauth.$$ trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP KILL BUS TERM + touch "$xserverauthfile" xauth -q -f "$xserverauthfile" << EOF add :$dummy . $mcookie EOF |