Scripts version 2100

This commit is contained in:
castro-fidel
2022-04-16 17:45:16 +03:00
parent cd5f85371f
commit a09063c284
20 changed files with 541 additions and 296 deletions

View File

@ -6,16 +6,16 @@ unset PW_AUTOPLAY PW_SET_LANG PW_SILENT_INSTALL
export portname="PortProton"
export port_ver=1.0
########################################################################
[[ -z "${LANG}" ]] && export LANG=C
[ -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"