Guest User

Untitled

a guest
Jun 28th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if ! mkdir /tmp/bf1942.lock; then
  4.     zenity --error --text="The game is already running"
  5.     printf "Failed to acquire lock.\n" >&2
  6.     exit 1
  7. fi
  8.  
  9. cd ~/.wine-bf1942/drive_c/Program\ Files\ \(x86\)/EA\ Games/Battlefield\ 1942
  10. WINEPREFIX=~/.wine-bf1942 /opt/wine-stable/bin/wine BF1942.exe +restart 1 $@ &
  11. trap 'rm -rf /tmp/bf1942.lock' EXIT
Add Comment
Please, Sign In to add comment