bring windows windows forward
This commit is contained in:
@@ -121,6 +121,14 @@ download_winlink() {
|
|||||||
fi
|
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 a VARA product using Wine
|
||||||
install_vara() {
|
install_vara() {
|
||||||
local pattern="$1"
|
local pattern="$1"
|
||||||
@@ -154,7 +162,10 @@ install_vara() {
|
|||||||
echo "The script will continue once the installer is closed."
|
echo "The script will continue once the installer is closed."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
wine "$exe"
|
wine "$exe" &
|
||||||
|
local wine_pid=$!
|
||||||
|
raise_wine_window &
|
||||||
|
wait "$wine_pid"
|
||||||
|
|
||||||
echo "$exe_name installation complete."
|
echo "$exe_name installation complete."
|
||||||
}
|
}
|
||||||
@@ -190,7 +201,10 @@ install_winlink() {
|
|||||||
echo "The script will continue once the installer is closed."
|
echo "The script will continue once the installer is closed."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
wine "$exe"
|
wine "$exe" &
|
||||||
|
local wine_pid=$!
|
||||||
|
raise_wine_window &
|
||||||
|
wait "$wine_pid"
|
||||||
|
|
||||||
echo "$exe_name installation complete."
|
echo "$exe_name installation complete."
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ UTILITIES=(
|
|||||||
wine
|
wine
|
||||||
winetricks
|
winetricks
|
||||||
xdg-utils
|
xdg-utils
|
||||||
|
xdotool
|
||||||
zim-tools
|
zim-tools
|
||||||
zimwriterfs
|
zimwriterfs
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user