diff options
Diffstat (limited to 'meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession')
-rw-r--r-- | meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession new file mode 100644 index 0000000000..cfa3a9a6e3 --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession | |||
@@ -0,0 +1,47 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # this location MUST be consistent with /etc/X11/gpe-login.pre-session | ||
4 | HOME_VOLATILE=/home/$USER/ramdisk | ||
5 | export HOME_VOLATILE | ||
6 | |||
7 | if [ -f /usr/bin/dbus-launch ]; then | ||
8 | ## test for an existing bus daemon, just to be safe | ||
9 | if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then | ||
10 | ## if not found, launch a new one | ||
11 | eval `dbus-launch --auto-syntax --exit-with-session` | ||
12 | echo "D-BUS per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS" | ||
13 | fi | ||
14 | fi | ||
15 | |||
16 | . /etc/profile | ||
17 | |||
18 | if [ -f $HOME/.profile ]; then | ||
19 | . $HOME/.profile | ||
20 | fi | ||
21 | |||
22 | SYSSESSIONDIR=/etc/X11/Xsession-gpe.d | ||
23 | |||
24 | if [ ! -d $SYSSESSIONDIR ]; then | ||
25 | SYSSESSIONDIR=/etc/X11/Xsession.d | ||
26 | fi | ||
27 | |||
28 | # Use run-parts to source every file in the session directory; we source | ||
29 | # instead of executing so that the variables and functions defined above | ||
30 | # are available to the scripts, and so that they can pass variables to each | ||
31 | # other. | ||
32 | |||
33 | # Can't use run-parts like this, busybox doesn't support it. Use ls instead | ||
34 | #SESSIONFILES=$(run-parts --list $SYSSESSIONDIR) | ||
35 | |||
36 | SESSIONFILES=`ls -X $SYSSESSIONDIR` | ||
37 | if [ -n "$SESSIONFILES" ]; then | ||
38 | for SESSIONFILE in $SESSIONFILES; do | ||
39 | # Test if script is executable first before sourcing it | ||
40 | if [ -x "$SYSSESSIONDIR/$SESSIONFILE" ]; then | ||
41 | . $SYSSESSIONDIR/$SESSIONFILE | ||
42 | fi | ||
43 | done | ||
44 | fi | ||
45 | |||
46 | exit 0 | ||
47 | |||