$OpenBSD: patch-startkde,v 1.20 2007/10/24 21:52:16 espie Exp $
--- startkde.orig	Mon Oct  8 13:09:44 2007
+++ startkde	Thu Oct 18 14:52:58 2007
@@ -3,6 +3,11 @@
 #  DEFAULT KDE STARTUP SCRIPT ( KDE-3.5.8 )
 #
 
+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
