$OpenBSD: patch-startkde,v 1.22 2008/08/26 16:52:29 espie Exp $
--- startkde.orig	Tue Aug 19 21:56:42 2008
+++ startkde	Thu Aug 21 20:20:12 2008
@@ -3,6 +3,11 @@
 #  DEFAULT KDE STARTUP SCRIPT ( KDE-3.5.10 )
 #
 
+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
