summaryrefslogtreecommitdiffstats
path: root/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession
diff options
context:
space:
mode:
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/Xsession47
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
4HOME_VOLATILE=/home/$USER/ramdisk
5export HOME_VOLATILE
6
7if [ -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
14fi
15
16. /etc/profile
17
18if [ -f $HOME/.profile ]; then
19 . $HOME/.profile
20fi
21
22SYSSESSIONDIR=/etc/X11/Xsession-gpe.d
23
24if [ ! -d $SYSSESSIONDIR ]; then
25 SYSSESSIONDIR=/etc/X11/Xsession.d
26fi
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
36SESSIONFILES=`ls -X $SYSSESSIONDIR`
37if [ -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
44fi
45
46exit 0
47