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> | 2014-04-23 20:34:39 +0100 |
commit | 7d6c8326dcf728829b1ae39f87017d89a55f1239 (patch) | |
tree | 0c22c2f956f095f1cf454c630893e54b20ee38e9 | |
parent | 0fe629d0782b95d510a97d2cc78e47f8db9c568a (diff) |
Silence xauth warning emitted when running startxcygwin-patches
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
-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 |