1 --- gpe-dm-0.43/Xsession.old 2005-02-23 11:39:23.000000000 +0000
2 +++ gpe-dm-0.43/Xsession 2005-02-23 12:21:28.011314968 +0000
4 SYSSESSIONDIR=/etc/X11/Xsession.d
7 -exec run-parts $SYSSESSIONDIR
8 +# Use run-parts to source every file in the session directory; we source
9 +# instead of executing so that the variables and functions defined above
10 +# are available to the scripts, and so that they can pass variables to each
13 +# Can't use run-parts like this, busybox doesn't support it. Use ls instead
14 +#SESSIONFILES=$(run-parts --list $SYSSESSIONDIR)
16 +SESSIONFILES=`ls -X $SYSSESSIONDIR`
17 +if [ -n "$SESSIONFILES" ]; then
18 + for SESSIONFILE in $SESSIONFILES; do
19 + # Test if script is executable first before sourcing it
20 + if [ -x "$SYSSESSIONDIR/$SESSIONFILE" ]; then
21 + . $SYSSESSIONDIR/$SESSIONFILE