From 66a9a6d0e6e195fb00d457ec77b190d36fbdc703 Mon Sep 17 00:00:00 2001 From: Michael Taboada Date: Thu, 5 Nov 2020 08:54:34 -0800 Subject: [PATCH] Clear display variable to avoid problem with wine asking to install mono in an inaccessible dialog. --- audiogame-manager.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 77ff63f..f5bed55 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -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 }