Use wineserver for know to wine status

This commit is contained in:
IroAlexis 2021-08-12 00:39:40 +02:00
parent 44cf2d1bc9
commit b2c389cd03
1 changed files with 3 additions and 3 deletions

View File

@ -27,15 +27,15 @@ function main() {
#config wine prefix and install mono and gecko automatic #config wine prefix and install mono and gecko automatic
echo -e "\033[1;93mplease install mono and gecko packages then click on OK button, do not change Windows version from Windows 7\e[0m" echo -e "\033[1;93mplease install mono and gecko packages then click on OK button, do not change Windows version from Windows 7\e[0m"
winecfg 2> "$SCR_PATH/wine-error.log" wineboot --init 2> "$SCR_PATH/wine-error.log"
if [ $? -eq 0 ];then if [ $? -eq 0 ];then
show_message "prefix configured..." show_message "prefix configured..."
sleep 5 wineserver --wait
else else
error "prefix config failed :(" error "prefix config failed :("
fi fi
sleep 5 wineserver --wait
if [ -f "$WINE_PREFIX/user.reg" ];then if [ -f "$WINE_PREFIX/user.reg" ];then
#add dark mod #add dark mod
set_dark_mod set_dark_mod