$OpenBSD: patch-startkde,v 1.21 2008/03/25 17:34:14 espie Exp $
--- startkde.orig	Wed Feb 13 10:49:19 2008
+++ startkde	Fri Feb 15 00:05:14 2008
@@ -3,6 +3,11 @@
 #  DEFAULT KDE STARTUP SCRIPT ( KDE-3.5.9 )
 #
 
+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
