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