--- /usr/bin/startx.ori 2006-09-19 12:13:58.484080480 +0200 +++ /usr/bin/startx 2006-09-19 12:14:09.008480528 +0200 @@ -118,7 +118,7 @@ # server man need it. Add them to the '$xserverauthfile' instead. for displayname in $authdisplay $hostname$authdisplay; do authcookie=`xauth list "$displayname" \ - | sed -n "s/.*$displayname[[:space:]*].*[[:space:]*]//p"` 2>/dev/null; + | grep XDM | sed -n "s/.*$displayname[[:space:]*].*[[:space:]*]//p"` 2>/dev/null; if [ "z${authcookie}" = "z" ] ; then xauth -q << EOF add $displayname . $mcookie