Post field testing updates - Automated addition of WINE registry keys. Applied fix for WINE application's (i.e. VARA) from constantly stealing the focus. in the desktop

This commit is contained in:
thetechprepper
2025-12-08 15:46:13 -07:00
parent 9554051d05
commit a3b3ee2956
@@ -1,17 +1,24 @@
#!/bin/bash
# Author : Gaston Gonzalez
# Date : 20 January 2025
# Updated : 4 February 2025
# Updated : 8 December 2025
# Purpose : Run regedit
set -e
source ./common-checks.sh
echo "Applying COM port mapping to /dev/et-cat..."
wine reg add 'HKEY_CURRENT_USER\Software\Wine\Ports' /t REG_SZ /v COM10 /d "/dev/et-cat" /f
echo "Applying application foucs hijacking fix..."
wine reg add 'HKEY_CURRENT_USER\Software\Wine\X11 Driver' /t REG_SZ /v UseTakeFocus /d N /f
echo -e "${YELLOW}"
echo -e "1. Expand HKEY_LOCAL_MACHINE > Software > Wine > Ports"
echo -e "2. In the main pain, right-click and select 'New' > 'String Value'"
echo -e "3. Set the name to ${WHITE}COM10${YELLOW} and the value to ${WHITE}/dev/et-cat${YELLOW}"
echo -e "4. Close the Registry Editor application"
echo -e "1. Expand HKEY_CURRENT_USER > Software > Wine > Ports"
echo -e " Confirm that ${WHITE}COM10${YELLOW} key present and is to ${WHITE}/dev/et-cat${YELLOW}"
echo -e "2. Expand HKEY_CURRENT_USER > Software > Wine > X11 Driver"
echo -e " Confirm that ${WHITE}UseTakeFocus${YELLOW} key present and is to ${WHITE}N${YELLOW}"
echo -e "3. Close the Registry Editor application"
echo -e "${NC}"
wine regedit