aboutsummaryrefslogtreecommitdiffstats
path: root/xdm/Xstartup
blob: 3ab2f544588954a91c2845d25cfd5d1b6976400e (about) (plain) (blame)
1
2
3
4
5
6
7
8
#!/bin/sh

# Get rid of all clients started by Xsetup
xwininfo -root -children | grep '  0x' | cut -d' ' -f6 | xargs -n1 xkill -id

# Register a login (derived from GiveConsole as follows:)
exec /usr/bin/sessreg  -a -w /var/log/wtmp -u /var/run/utmp -x /etc/X11/xdm/Xservers -l $DISPLAY -h "" $USER