Clear display variable to avoid problem with wine asking to install mono in an inaccessible dialog.

This commit is contained in:
Michael Taboada 2020-11-05 08:54:34 -08:00
parent a680e8a462
commit 66a9a6d0e6

View File

@ -128,7 +128,8 @@ install_wine_bottle() {
mkdir -p "$HOME/.local/wine/${bottle}"
export WINEPREFIX="$HOME/.local/wine/${bottle}"
# Arguments to the function are dependancies to be installed.
(wine msiexec /i z:/usr/share/wine/mono/$(ls -1 /usr/share/wine/mono/) /silent
(DISPLAY="" wineboot -u
wine msiexec /i z:/usr/share/wine/mono/$(ls -1 /usr/share/wine/mono/) /silent
wine msiexec /i z:$(ls -1 /usr/share/wine/gecko/*x86.msi) /silent
winetricks -q $@ ${winVer:-winxp} ${winetricksSettings}) | dialog --progressbox "Installing wine bottle, please wait..." -1 -1
}