bring windows windows forward
This commit is contained in:
@@ -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."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user