$OpenBSD: patch-startkde,v 1.2 2003/07/30 12:59:22 espie Exp $
--- startkde.orig	Sun Jul 13 22:10:07 2003
+++ startkde	Wed Jul 16 01:18:27 2003
@@ -3,6 +3,11 @@
 #  DEFAULT KDE STARTUP SCRIPT ( KDE-3.1.3 )
 #
 
+case X"$DISPLAY" in
+X)
+	exec /usr/X11R6/bin/startx $0;;
+esac
+
 # When the X server dies we get a HUP signal from xinit. We must ignore it
 # because we still need to do some cleanup.
 trap 'echo GOT SIGHUP' HUP
