
# Install MDM desktop files to a non-default desktop file
# location (/usr/share/mdm/applications) and MDM appends
# this directory to the end of the XDG_DATA_DIR environment
# variable.  This way, MDM menu choices never appear if
# using a different display manager.

if [ -n "$MDMSESSION" ]; then
    if [ -n "$XDG_DATA_DIRS" ]; then
        XDG_DATA_DIRS="$XDG_DATA_DIRS":"/usr/share/mdm/"
    else
        XDG_DATA_DIRS="/usr/local/share/:/usr/share/:/usr/share/mdm/"
    fi
    export XDG_DATA_DIRS
fi
