Bug#357736: simple solution?
I think there may be a simpler solution to this problem.
The following patch to /usr/bin/startx should do the trick.
--- startx.orig 2007-04-20 16:07:37.000000000 -0400
+++ startx 2007-06-17 21:23:09.000000000 -0400
@@ -128,6 +128,8 @@
# create a file with auth information for the server. ':0' is a dummy.
xserverauthfile=$HOME/.serverauth.$$
+trap "/bin/rm -f $xserverauthfile; exit 1" 1 2 15 # clean up on unceremonious exit
+trap "/bin/rm -f $xserverauthfile; exit 0" 0 # clean up on clean exit
xauth -q -f $xserverauthfile << EOF
add :$dummy . $mcookie
EOF
Reply to: