summaryrefslogtreecommitdiffstats
path: root/meta/packages/x11-common/x11-common/etc/X11/Xsession
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/x11-common/x11-common/etc/X11/Xsession')
-rw-r--r--meta/packages/x11-common/x11-common/etc/X11/Xsession42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/packages/x11-common/x11-common/etc/X11/Xsession b/meta/packages/x11-common/x11-common/etc/X11/Xsession
new file mode 100644
index 0000000000..8f3e5edd7d
--- /dev/null
+++ b/meta/packages/x11-common/x11-common/etc/X11/Xsession
@@ -0,0 +1,42 @@
1#!/bin/sh
2
3HOME_VOLATILE=/home/$USER/ramdisk
4export HOME_VOLATILE
5
6HOME=/home/$USER
7export HOME
8
9if [ -x /usr/bin/dbus-launch ]; then
10 # As this is the X session script, always start a new DBus session.
11 eval `dbus-launch --sh-syntax --exit-with-session`
12 echo "D-BUS per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"
13fi
14
15. /etc/profile
16
17if [ -f $HOME/.profile ]; then
18 . $HOME/.profile
19fi
20
21SYSSESSIONDIR=/etc/X11/Xsession.d
22
23for SESSIONFILE in $SYSSESSIONDIR/*; do
24 set +e
25 case "$SESSIONFILE" in
26 *.sh)
27 . "$SESSIONFILE"
28 ;;
29 *.shbg)
30 "$SESSIONFILE" &
31 ;;
32 *~)
33 # Ignore backup files
34 ;;
35 *)
36 "$SESSIONFILE"
37 ;;
38 esac
39 set -e
40done
41
42exit 0