]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/gpe-dm/files/source-xsession-scripts.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / gpe-dm / files / source-xsession-scripts.patch
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
3 @@ -25,4 +25,23 @@
4    SYSSESSIONDIR=/etc/X11/Xsession.d
5  fi
6  
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
11 +# other.
12 +
13 +# Can't use run-parts like this, busybox doesn't support it. Use ls instead
14 +#SESSIONFILES=$(run-parts --list $SYSSESSIONDIR)
15 +
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
22 +    fi
23 +  done
24 +fi
25 +
26 +exit 0
27 +