Scripts version 2096

This commit is contained in:
castro-fidel
2022-04-03 21:07:07 +03:00
parent 76e52f5a78
commit 0fa5790b42
10 changed files with 122 additions and 70 deletions

View File

@ -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"