Do not show errors while xdg-open tries to find a suitable browser.

This commit is contained in:
Storm Dragon 2021-10-24 09:33:50 -04:00
parent 0eec14f9f3
commit a9cedbf340

View File

@ -107,9 +107,9 @@ update() {
# Function to open urls across OS. # Function to open urls across OS.
open_url() { open_url() {
if [[ "$(uname)" == "Darwin" ]]; then if [[ "$(uname)" == "Darwin" ]]; then
open "${*}" open "${*}" 2> /dev/null
else else
xdg-open "${*}" xdg-open "${*}" 2> /dev/null
fi fi
} }
@ -470,8 +470,8 @@ install_wine_bottle() {
export WINEPREFIX="$HOME/.local/wine/${bottle}" export WINEPREFIX="$HOME/.local/wine/${bottle}"
# Arguments to the function are dependancies to be installed. # Arguments to the function are dependancies to be installed.
# Get location of mono and gecko. # Get location of mono and gecko.
monoPath="$(find /usr/share/wine/mono -name "wine-mono*x86.msi")" monoPath="$(find /usr/share/wine/mono -name "wine-mono*x86.msi" 2> /dev/null)"
geckoPath="$(find /usr/share/wine/gecko -name "wine-gecko*x86.msi")" geckoPath="$(find /usr/share/wine/gecko -name "wine-gecko*x86.msi" 2> /dev/null)"
if [[ -z "$monoPath" ]]; then if [[ -z "$monoPath" ]]; then
download 'http://dl.winehq.org/wine/wine-mono/6.0.0/wine-mono-6.0.0-x86.msi' download 'http://dl.winehq.org/wine/wine-mono/6.0.0/wine-mono-6.0.0-x86.msi'
monoPath="${cache}/wine-mono-6.0.0-x86.msi" monoPath="${cache}/wine-mono-6.0.0-x86.msi"
@ -1521,7 +1521,7 @@ case "${game}" in
"Crime Hunter") "Crime Hunter")
export WINEARCH=win64 export WINEARCH=win64
export winVer="win7" export winVer="win7"
install_wine_bottle speechsdk install_wine_bottle
download "http://masonasons.me/softs/CH2.0Win.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient64.dll" download "http://masonasons.me/softs/CH2.0Win.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient64.dll"
unzip -d "$WINEPREFIX/drive_c/Program Files/crime-hunter" "${cache}/CH2.0Win.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/crime-hunter" "${cache}/CH2.0Win.zip"
find "${WINEPREFIX}" -type f -name 'nvdaControllerClient64.dll' -exec cp -v "${cache}/nvdaControllerClient64.dll" "{}" \; find "${WINEPREFIX}" -type f -name 'nvdaControllerClient64.dll' -exec cp -v "${cache}/nvdaControllerClient64.dll" "{}" \;