$OpenBSD: patch-data_Xsession_in,v 1.4 2013/05/18 17:28:55 ajacoutot Exp $

XXX push upstream

--- data/Xsession.in.orig	Fri Jul 20 21:00:19 2012
+++ data/Xsession.in	Mon Nov 26 16:17:32 2012
@@ -23,6 +23,8 @@
 # based on:
 # $XConsortium: Xsession /main/10 1995/12/18 18:21:28 gildea $
 
+PATH="@X_PATH@:$PATH"
+
 command="$@"
 
 # this will go into the .xsession-errors along with all other echo's
@@ -180,6 +182,9 @@ if [ "x$command" = "xdefault" ] ; then
     command="/etc/X11/xinit/Xclients"
   elif [ -x /etc/X11/Xclients ]; then
     command="/etc/X11/Xclients"
+  elif [ -x "/etc/X11/xdm/Xsession" ]; then
+    # Load the default OpenBSD
+    command="/etc/X11/xdm/Xsession"
   else
     if [ -n "$zenity" ] ; then
 	disptext=`gettextfunc "System has no Xclients file, so starting a failsafe xterm session.  Windows will have focus only if the mouse pointer is above them.  To get out of this mode type 'exit' in the window."`
