forked from CastroFidel/PortWINE
Scripts version 2096
This commit is contained in:
@ -6,15 +6,16 @@ unset PW_AUTOPLAY PW_SET_LANG PW_SILENT_INSTALL
|
||||
export portname="PortProton"
|
||||
export port_ver=1.0
|
||||
########################################################################
|
||||
[[ -z "${LANG}" ]] && export LANG=C
|
||||
deflink="${HOME}/PortWINE/${portname}"
|
||||
[ $(id -u) -eq 0 ] && echo "Do not run the script from the superuser!" && zenity --error --text "Do not run the script from the superuser!" 2> /dev/null && exit 1
|
||||
if [ "$(dirname "`readlink -f "$0"`")" == "/usr/bin" ] ; then
|
||||
[ -z "${XDG_DATA_HOME}" ] && export XDG_DATA_HOME="$HOME/.local/share"
|
||||
if [ -f "${XDG_DATA_HOME}/PortWINE/PortProton/data/scripts/start.sh" ] ; then
|
||||
[[ $(id -u) -eq 0 ]] && echo "Do not run the script from the superuser!" && zenity --error --text "Do not run the script from the superuser!" 2> /dev/null && exit 1
|
||||
if [[ "$(dirname "`readlink -f "$0"`")" == "/usr/bin" ]] ; then
|
||||
[[ -z "${XDG_DATA_HOME}" ]] && export XDG_DATA_HOME="$HOME/.local/share"
|
||||
if [[ -f "${XDG_DATA_HOME}/PortWINE/PortProton/data/scripts/start.sh" ]] ; then
|
||||
/usr/bin/env bash "${XDG_DATA_HOME}/PortWINE/PortProton/data/scripts/start.sh" "$@"
|
||||
exit 0
|
||||
else
|
||||
if [ ! -z "`locale | grep "LANG=ru_RU.UTF-8"`" ] ; then
|
||||
if [[ ! -z "`locale | grep "LANG=ru_RU.UTF-8"`" ]] ; then
|
||||
PW_SET_LANG="Russian"
|
||||
else
|
||||
PW_SET_LANG="English"
|
||||
|
Reference in New Issue
Block a user