commit 1237e66769fe75c920fe849451bac4236a83815f
Author: Halton Huo <halton.huo@sun.com>
Date:   Mon Jan 11 15:13:20 2010 +0800

    Ignore execute subfolder under /etc/X11/xinit/xinitrc.d/
    
    https://bugzilla.gnome.org/show_bug.cgi?id=606609

diff --git a/data/Xsession.in b/data/Xsession.in
index d972056..6c7761a 100755
--- a/data/Xsession.in
+++ b/data/Xsession.in
@@ -180,7 +180,7 @@ fi
 # run all system xinitrc shell scripts.
 if [ -d /etc/X11/xinit/xinitrc.d ]; then
     for i in /etc/X11/xinit/xinitrc.d/* ; do
-        if [ -x "$i" ]; then
+        if [ -x "$i" -a ! -d "$i" ]; then
 	    . "$i"
         fi
     done
