#!/bin/sh

HOME_VOLATILE=/home/$USER/ramdisk
export HOME_VOLATILE

HOME=/home/$USER
export HOME

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

run-parts $SYSSESSIONDIR

exit 0

