send noop command to steam before installing mods

This commit is contained in:
lelgenio 2023-05-26 20:00:03 -03:00
parent 857c053692
commit 12ca1bf0a7
2 changed files with 16 additions and 0 deletions

View file

@ -30,6 +30,7 @@ stdenv.mkDerivation rec {
./patches/dont-hardcode-zenity.patch ./patches/dont-hardcode-zenity.patch
./patches/dont-write-desktop-entry-during-runtime.patch ./patches/dont-write-desktop-entry-during-runtime.patch
./patches/dont-check-map-count.patch ./patches/dont-check-map-count.patch
./patches/send-noop-before-installing-mods.patch
]; ];
installPhase = '' installPhase = ''

View file

@ -0,0 +1,15 @@
diff --git a/dzgui.sh b/dzgui.sh
index 97b5cd0..5e661cc 100755
--- a/dzgui.sh
+++ b/dzgui.sh
@@ -1056,6 +1056,10 @@ console_dl(){
local wid=$(xdotool search --onlyvisible --name Steam)
#xdotool windowactivate $wid
sleep 1.5s
+ xdotool type --delay 0 "noop"
+ sleep 0.5s
+ xdotool key --window $wid Return
+ sleep 0.5s
for i in "${modids[@]}"; do
xdotool type --delay 0 "workshop_download_item $aid $i"
sleep 0.5s