More syntax fixes. Thanks Claud for helping track this one down. It was very illusive.
This commit is contained in:
@@ -271,14 +271,14 @@ game_launcher() {
|
|||||||
# For use by update scripts that want to source functions in this file.
|
# For use by update scripts that want to source functions in this file.
|
||||||
[[ "$agmNoLaunch" == "true" ]] && return
|
[[ "$agmNoLaunch" == "true" ]] && return
|
||||||
source .includes/bottle.sh
|
source .includes/bottle.sh
|
||||||
pgrep -u "$USER" nvda2speechd &> /dev/null || {
|
# Start nvda2speechd if available
|
||||||
if [[ -x ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd ]]; then
|
if [[ -x ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd ]]; then
|
||||||
if command -v FEXLoader &> /dev/null ; then
|
if command -v FEXLoader &> /dev/null ; then
|
||||||
FEXLoader -- ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd &> /dev/null &
|
FEXLoader -- ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd &> /dev/null &
|
||||||
else
|
else
|
||||||
${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd &> /dev/null &
|
${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd &> /dev/null &
|
||||||
fi
|
fi
|
||||||
fi; }
|
fi
|
||||||
mapfile -t lines < <(sed -e '/^$/d' -e '/^ *#/d' "${configFile}" 2> /dev/null)
|
mapfile -t lines < <(sed -e '/^$/d' -e '/^ *#/d' "${configFile}" 2> /dev/null)
|
||||||
if [[ ${#lines} -eq 0 ]]; then
|
if [[ ${#lines} -eq 0 ]]; then
|
||||||
echo "Install some games first."
|
echo "Install some games first."
|
||||||
@@ -384,8 +384,6 @@ fi
|
|||||||
checkWinetricksUpdate="false"
|
checkWinetricksUpdate="false"
|
||||||
# Turn off debug messages
|
# Turn off debug messages
|
||||||
export WINEDEBUG="${winedebug:--all}"
|
export WINEDEBUG="${winedebug:--all}"
|
||||||
# Compatibility with box86
|
|
||||||
export BOX86_NOBANNER=1
|
|
||||||
# During installation, you can set winVer to the versions available.
|
# During installation, you can set winVer to the versions available.
|
||||||
# To set winetricks arguments, such as virtual desktop, set the winetricksSettings variable.
|
# To set winetricks arguments, such as virtual desktop, set the winetricksSettings variable.
|
||||||
# Example: winetricksSettings="vd=1024x768"
|
# Example: winetricksSettings="vd=1024x768"
|
||||||
@@ -398,6 +396,16 @@ unset version
|
|||||||
export ipfsGateway="${ipfsGateway:-https://ipfs.stormux.org}"
|
export ipfsGateway="${ipfsGateway:-https://ipfs.stormux.org}"
|
||||||
export nvdaControllerClientDll="${ipfsGateway}/ipfs/QmWu7YdSbKMk1Qm5DKvEA5hk1YuAK8wVkwhDf2CsmPkmF1?filename=nvdaControllerClient32.dll"
|
export nvdaControllerClientDll="${ipfsGateway}/ipfs/QmWu7YdSbKMk1Qm5DKvEA5hk1YuAK8wVkwhDf2CsmPkmF1?filename=nvdaControllerClient32.dll"
|
||||||
|
|
||||||
|
# Start nvda2speechd server
|
||||||
|
pgrep -u "$USER" nvda2speechd &> /dev/null || {
|
||||||
|
if [[ ! -f "${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd" ]]; then
|
||||||
|
download "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd"
|
||||||
|
cp "${cache}/nvda2speechd" "${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd"
|
||||||
|
chmod +x "${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd"
|
||||||
|
fi
|
||||||
|
"${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd" ;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Source helper functions
|
# Source helper functions
|
||||||
source .includes/bottle.sh # Also sourced in functions that need it
|
source .includes/bottle.sh # Also sourced in functions that need it
|
||||||
|
Reference in New Issue
Block a user