openbsd-ports/x11/kde/base3/patches/patch-startkde
ajacoutot ac7d104490 Set XDG_MENU_PREFIX.
ok landry@
2009-11-14 16:41:57 +00:00

21 lines
529 B
Plaintext

$OpenBSD: patch-startkde,v 1.23 2009/11/14 16:41:57 ajacoutot Exp $
--- startkde.orig Tue Aug 19 21:56:42 2008
+++ startkde Sat Nov 14 16:55:43 2009
@@ -3,6 +3,16 @@
# DEFAULT KDE STARTUP SCRIPT ( KDE-3.5.10 )
#
+case X"$DISPLAY" in
+X)
+ exec /usr/X11R6/bin/startx $0;;
+esac
+
+if [ -z "${XDG_MENU_PREFIX}" ] ; then
+ XDG_MENU_PREFIX="kde3-"
+ export XDG_MENU_PREFIX
+fi
+
# 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