bring windows windows forward

This commit is contained in:
David Young
2026-06-05 15:51:42 -06:00
parent 305b90755b
commit d479426826
2 changed files with 17 additions and 2 deletions

View File

@@ -121,6 +121,14 @@ download_winlink() {
fi
}
# Wait for a Wine window to appear and raise it to the front
raise_wine_window() {
for i in $(seq 1 20); do
sleep 1
xdotool search --class Wine windowfocus windowraise 2>/dev/null && return 0
done
}
# Install a VARA product using Wine
install_vara() {
local pattern="$1"
@@ -154,7 +162,10 @@ install_vara() {
echo "The script will continue once the installer is closed."
echo ""
wine "$exe"
wine "$exe" &
local wine_pid=$!
raise_wine_window &
wait "$wine_pid"
echo "$exe_name installation complete."
}
@@ -190,7 +201,10 @@ install_winlink() {
echo "The script will continue once the installer is closed."
echo ""
wine "$exe"
wine "$exe" &
local wine_pid=$!
raise_wine_window &
wait "$wine_pid"
echo "$exe_name installation complete."
}

View File

@@ -38,6 +38,7 @@ UTILITIES=(
wine
winetricks
xdg-utils
xdotool
zim-tools
zimwriterfs
)