#!/bin/bash # Copyright (C) 2007-2010 PlayOnLinux Team # Copyright (C) 2011 Pâris Quentin # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ### Terminal export POL_TERM="xterm" ### Desktop [ "$(which xdg-user-dir)" ] && export DESKTOP="$(xdg-user-dir DESKTOP)" || export DESKTOP="$HOME/Desktop" ### Language if [ ! "$NOGETTEXT" = "TRUE" ] || [ "$(POL_Config_Read NOGETTEXT)" = "TRUE" ] then export TEXTDOMAIN="pol" . gettext.sh eval_gettext > /dev/null || eval_gettext() { printf "$@"; } else eval_gettext() { printf "$@"; } fi which shasum > /dev/null 2> /dev/null || shasum () { sha1sum "$@"; } ### POL Proxy Settings if [ -e "$REPERTOIRE/configurations/options/proxy" ] then source "$REPERTOIRE/configurations/options/proxy" if [ "$PROXY_ENABLED" = "1" ] then if [ ! "$PROXY_ADRESS" = "" ] then if [ ! "$PROXY_LOGIN" = "" ] then export http_proxy="http://$PROXY_LOGIN:$PROXY_PASS@$PROXY_ADRESS:$PROXY_PORT" else export http_proxy="http://$PROXY_ADRESS:$PROXY_PORT" fi fi fi fi if [ "$POL_OS" == "Linux" ] then export POL_LANG=$(echo "$LANG" | cut -d\_ -f 1) export MD5_COMMAND="md5sum" fi if [ "$POL_OS" == "Mac" ] then export POL_LANG="$(defaults read -g AppleLocale | cut -d _ -f1)" export MD5_COMMAND="md5" fi #Codes de sorties EXIT_MISSING=2 EXIT_ERROR=255 EXIT_SUCCES=0 # Default architecture export POL_ARCH="x86" # Divers trucs export IGNORE_ICON_DIR="false" export GNUPGHOME="$REPERTOIRE/gpg"