aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession
blob: a87447a879ac493edc6b30e8f42fc1dd76dce238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh

if [ -x /usr/bin/dbus-launch ]; then
    # As this is the X session script, always start a new DBus session.
    eval `dbus-launch --sh-syntax --exit-with-session`
    echo "D-BUS per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"
fi

. /etc/profile

if [ -f $HOME/.profile ]; then
    . $HOME/.profile
fi

SYSSESSIONDIR=/etc/X11/Xsession.d

export CLUTTER_DISABLE_MIPMAPPED_TEXT=1

for SESSIONFILE in $SYSSESSIONDIR/*; do
    set +e
    case "$SESSIONFILE" in
        *.sh)
            . "$SESSIONFILE"
            ;;
        *.shbg)
            "$SESSIONFILE" &
            ;;
        *~)
            # Ignore backup files
            ;;
        *)
            "$SESSIONFILE"
            ;;
    esac
    set -e
done

exit 0