Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 </dev/null` |
| 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 |