diff --git a/config-wine-hawc2.sh b/config-wine-hawc2.sh index 7f321ed40e4cfadbb4a3f5c97002f9dc5bd79f71..d7d38d85421ed450de7210aee51cb3f365efeafa 100755 --- a/config-wine-hawc2.sh +++ b/config-wine-hawc2.sh @@ -17,8 +17,20 @@ cp $HAWC2EXES/* "/home/$USER/$WINEDIRNAME/drive_c/bin/" echo "-------- adding /home/$USER/$WINEDIRNAME/drive_c/bin/ to wine system PATH" -WINEARCH=win32 WINEPREFIX=~/$WINEDIRNAME wine regedit /E tmp.reg "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment" -sed -i 's/"PATH"="C:\\\\windows\\\\system32;C:\\\\windows"/"PATH"="C:\\\\windows\\\\system32;C:\\\\windows;C:\\\\bin"/g' tmp.reg +#WINEARCH=win32 WINEPREFIX=~/$WINEDIRNAME wine regedit /E tmp.reg "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment" +#sed -i 's/"PATH"="C:\\\\windows\\\\system32;C:\\\\windows"/"PATH"="C:\\\\windows\\\\system32;C:\\\\windows;C:\\\\bin"/g' tmp.reg +#WINEARCH=win32 WINEPREFIX=~/$WINEDIRNAME wine regedit ./tmp.reg +#rm ./tmp.reg + +# add C:\bin (/home/$USER/$WINEDIRNAME/drive_c/bin/) to Windows PATH variable +rm ./tmp.reg +WINEARCH=win32 WINEPREFIX=~/$WINEDIRNAME wine regedit /E ./tmp.reg "HKEY_CURRENT_USER\Environment" +printf '"PATH"="c:\\bin"' >> ./tmp.reg +WINEARCH=win32 WINEPREFIX=~/$WINEDIRNAME wine regedit ./tmp.reg + +# do not show GUI crash dialogs +rm ./tmp.reg +printf '[HKEY_CURRENT_USER\Software\Wine\WineDbg]\n"ShowCrashDialog"=dword:00000000' >> ./tmp.reg WINEARCH=win32 WINEPREFIX=~/$WINEDIRNAME wine regedit ./tmp.reg rm ./tmp.reg