$OpenBSD: patch-startkde,v 1.19 2007/05/25 09:49:54 espie Exp $
--- startkde.orig	Mon May 14 09:55:53 2007
+++ startkde	Mon May 14 19:06:24 2007
@@ -3,6 +3,11 @@
 #  DEFAULT KDE STARTUP SCRIPT ( KDE-3.5.7 )
 #
 
+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
