-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwine-boot.sh
More file actions
45 lines (34 loc) · 1.9 KB
/
wine-boot.sh
File metadata and controls
45 lines (34 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env sh
set -e
set -x
WINEATOMIC="/wine-atomic.sh"
#https://github.com/Winetricks/winetricks/issues/1525
echo "The WINEDEBUG is '${WINEDEBUG}'"
echo "The WINEPREFIX is '${WINEPREFIX}'"
echo "The WINEARCH is '${WINEARCH}'"
echo "The WINEDLLOVERRIDES is '${WINEDLLOVERRIDES}'"
echo "The LC_ALL is '${LC_ALL}'"
echo "The DBUS_FATAL_WARNINGS is '${DBUS_FATAL_WARNINGS}'"
if dpkg -s wine > /dev/null 2>&1 ; then
WINEBOOTBINARY="wineboot-stable"
else
WINEBOOTBINARY="wineboot"
fi
timeout 60s $WINEBOOTBINARY --init
$WINEATOMIC reg add "HKCU\\Software\\Wine\\Drivers" /v Graphics /t REG_SZ /d null /f
$WINEATOMIC reg add "HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug" /v Auto /t REG_DWORD /d 1 /f
$WINEATOMIC reg add "HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug" /v Debugger /t REG_SZ /d "winedbg --auto %ld %ld" /f
$WINEATOMIC reg add "HKCU\\Software\\Wine\\WineDbg" /v BreakOnFirstChance /t REG_DWORD /d 0 /f
$WINEATOMIC reg add "HKCU\\Software\\Wine\\WineDbg" /v ShowCrashDialog /t REG_DWORD /d 0 /f
$WINEATOMIC reg add "HKCU\\Software\\Wine\\Explorer" /v Desktops /t REG_SZ /d 1024x768 /f
$WINEATOMIC reg add "HKCU\\Software\\Microsoft\\Avalon.Graphics" /v DisableHWAcceleration /t REG_DWORD /d 1 /f
$WINEATOMIC reg add "HKLM\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\TLS 1.3\\Client" /v Enabled /t REG_DWORD /d 1 /f
$WINEATOMIC reg add "HKLM\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\TLS 1.3\\Client" /v DisabledByDefault /t REG_DWORD /d 0 /f
$WINEATOMIC reg delete "HKLM\\System\\CurrentControlSet\\Services\\winebth" /f
$WINEATOMIC uninstaller --list
#wine winecfg
WINVER="$(WINEDEBUG="-all" unbuffer $WINEATOMIC winecfg /v)"
echo "the first saved WINVER is ${WINVER}"
$WINEATOMIC winecfg /v "${WINVER}" | cat
WINVER="$(WINEDEBUG="-all" unbuffer $WINEATOMIC winecfg /v)"
echo "the second saved WINVER is ${WINVER}"