summaryrefslogtreecommitdiffstats
path: root/xdm/Xstartup
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xxdm/Xstartup8
1 files changed, 8 insertions, 0 deletions
diff --git a/xdm/Xstartup b/xdm/Xstartup
new file mode 100755
index 0000000..3ab2f54
--- /dev/null
+++ b/xdm/Xstartup
@@ -0,0 +1,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
+