Advertisement
Guest User

PlantsVsZombies Wine launcher

a guest
Nov 25th, 2015
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. export WINEPREFIX="$HOME/.PlayOnLinux/wineprefix/Steam"
  4. export WINEDEBUG="-all"
  5.  
  6. xset -dpms
  7. xset s off
  8.  
  9. RES=$(DISPLAY=:0 xdpyinfo | grep dimensions | awk '{print $2}')
  10. VIRT_DESK="explorer /desktop=Steam,$RES"
  11.  
  12. WINEVERSION="$HOME/.PlayOnLinux/wine/linux-x86/1.7.4-CSMT"
  13. STEAM_DIR="$HOME/.PlayOnLinux/wineprefix/Steam/drive_c/Program Files/Steam"
  14. GAME_DIR="SteamApps/common/Plants Vs Zombies"
  15. GAME_EXEC="PlantsVsZombies.exe"
  16.  
  17. $WINEVERSION/bin/wine $VIRT_DESK "$STEAM_DIR"/Steam.exe -silent &
  18. sleep 10
  19. $WINEVERSION/bin/wine $VIRT_DESK "$STEAM_DIR"/"$GAME_DIR"/"$GAME_EXEC"
  20. sleep 10
  21.  
  22. while ps -C popcapgame1.exe > /dev/null; do sleep 5; done; $WINEVERSION/bin/wine "$STEAM_DIR"/Steam.exe -shutdown
  23. while ps -C Steam.exe > /dev/null; do sleep 2; done; $WINEVERSION/bin/wineserver -k
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement