--- /etc/X11/xdm/Xstartup 2009-06-03 12:40:26.000000000 +0700 +++ Xstartup 2009-11-19 15:36:59.557499617 +0700 @@ -1,4 +1,7 @@ #!/bin/sh # Register a login (derived from GiveConsole as follows:) # + +kill -9 $(cat /var/run/Xsession.pid) + /usr/bin/sessreg -a -w "/var/log/wtmp" -u "/var/run/utmp" -x "XDMCONFIGDIR/Xservers" -l $DISPLAY -h "" $USER