Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if ! mkdir /tmp/bf1942.lock; then
- zenity --error --text="The game is already running"
- printf "Failed to acquire lock.\n" >&2
- exit 1
- fi
- cd ~/.wine-bf1942/drive_c/Program\ Files\ \(x86\)/EA\ Games/Battlefield\ 1942
- WINEPREFIX=~/.wine-bf1942 /opt/wine-stable/bin/wine BF1942.exe +restart 1 $@ &
- trap 'rm -rf /tmp/bf1942.lock' EXIT
Add Comment
Please, Sign In to add comment