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