$OpenBSD: patch-startkde,v 1.16 2006/08/03 10:53:36 espie Exp $
--- startkde.orig	Sun Jul 23 16:23:24 2006
+++ startkde	Mon Jul 31 18:27:44 2006
@@ -3,6 +3,11 @@
 #  DEFAULT KDE STARTUP SCRIPT ( KDE-3.5.4 )
 #
 
+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
