#!/bin/bash export WINEPREFIX="$HOME/.PlayOnLinux/wineprefix/Steam" export WINEDEBUG="-all" xset -dpms xset s off RES=$(DISPLAY=:0 xdpyinfo | grep dimensions | awk '{print $2}') VIRT_DESK="explorer /desktop=Steam,$RES" WINEVERSION="$HOME/.PlayOnLinux/wine/linux-x86/1.7.4-CSMT" STEAM_DIR="$HOME/.PlayOnLinux/wineprefix/Steam/drive_c/Program Files/Steam" GAME_DIR="SteamApps/common/Borderlands/Binaries" GAME_EXEC="Borderlands.exe" $WINEVERSION/bin/wine $VIRT_DESK "$STEAM_DIR"/Steam.exe -silent & sleep 8 if [ "${SteamTenfoot}" -eq "1" ]; then LD_PRELOAD= $WINEVERSION/bin/wine $VIRT_DESK "$STEAM_DIR"/"$GAME_DIR"/"$GAME_EXEC" else $WINEVERSION/bin/wine $VIRT_DESK "$STEAM_DIR"/"$GAME_DIR"/"$GAME_EXEC" fi sleep 10 while ps -C "$GAME_EXEC" > /dev/null; do sleep 5; done; $WINEVERSION/bin/wine "$STEAM_DIR"/Steam.exe -shutdown while ps -C Steam.exe > /dev/null; do sleep 2; done; $WINEVERSION/bin/wineserver -k