#!/bin/sh

# turn on fonts antialiasing
export GDK_USE_XFT=1

# TODO
# set default browser to whatever MATE user likes
#export BROWSER=mate-open

# does not work; see https://bugzilla.altlinux.org/28134
# tell restored browsers where plugins are
# export MOZ_PLUGIN_PATH="${MOZ_PLUGIN_PATH:+"$MOZ_PLUGIN_PATH:"}${HOME:+"$HOME/.mozilla/plugins:"}/usr/lib64/mozilla/plugins:/usr/lib64/netscape/plugins:/usr/lib64/browser-plugins"

# TODO
# export HELP_BROWSER=yelp

# use prefixed .menu files
#export XDG_MENU_PREFIX="mate-"

# Since shared-mime-info-0.90-alt3 XDG_DATA_DIRS not exported. We need to define
# the set of base directories explicitly.

if [ -z "$XDG_DATA_DIRS" ]; then
    XDG_DATA_DIRS="/usr/share:/usr/local/share"
fi
export XDG_DATA_DIRS="/usr/share/mate:$XDG_DATA_DIRS"

exec /usr/bin/mate-session "$@"
