diff options
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/Xsession | 38 |
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 | |||
3 | if [ -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" | ||
7 | fi | ||
8 | |||
9 | . /etc/profile | ||
10 | |||
11 | if [ -f $HOME/.profile ]; then | ||
12 | . $HOME/.profile | ||
13 | fi | ||
14 | |||
15 | SYSSESSIONDIR=/etc/X11/Xsession.d | ||
16 | |||
17 | export CLUTTER_DISABLE_MIPMAPPED_TEXT=1 | ||
18 | |||
19 | for 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 | ||
36 | done | ||
37 | |||
38 | exit 0 | ||