Move startx auth files in /tmp so they are removed on reboot. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=357736 The trap patch didn't seem to work on reboot. --- startx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/startx.cpp b/startx.cpp index 082f780..9f9ff00 100644 --- a/startx.cpp +++ b/startx.cpp @@ -261,7 +261,7 @@ if [ x"$enable_xauth" = x1 ] ; then dummy=0 XCOMM create a file with auth information for the server. ':0' is a dummy. - xserverauthfile=$HOME/.serverauth.$$ + xserverauthfile=`mktemp --tmpdir serverauth.XXXXXXXXXX` trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP BUS TERM xauth -q -f "$xserverauthfile" << EOF add :$dummy . $mcookie -- 2.37.4