#!/bin/sh

# this location MUST be consistent with /etc/X11/gpe-login.pre-session
HOME_VOLATILE=/home/$USER/ramdisk
export HOME_VOLATILE

SYSSESSIONDIR=/etc/X11/Xsession-gpe.d

if [ ! -f $SYSSESSIONDIR ]; then
  SYSSESSIONDIR=/etc/X11/Xsession.d
fi

exec run-parts $SYSSESSIONDIR
