Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- #:: STEAM LINUX REPLAY LAUNCHER
- #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- #::::::::::::::::::::::::::::::::::::::::::::// OEM ENABLE CONFIG //::::::::::::::::::::::::::::::::::// Linux //::::::::
- #::
- #:: Author: Vonschutter
- #:: Version 1.00
- #::
- #::
- #:: Purpose: The purpose of this script is to simplify watching your replays.
- #:: As per the writing of this script World of Warships automatically stores the last 30
- #:: replays on your system. There have been many posts asking hos to watch them so this
- #:: script helps facilitate that.
- #::
- #:: Usage: Simply execute this script to accomplish this task. No parameters required.
- #:: Source: https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-Line_Parameters_2
- #::
- #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- #
- # This script is shared in the hopes that someone will find it useful.
- # This script is intended to live in the ~/bin/ or /bin/ folder, alternatively in the $PATH.
- pushd ~/.steam/debian-installation/steamapps/common/World\ of\ Warships/replays
- _replay=$( zenity --file-selection )
- if [[ -n ${_replay} ]] ; then
- steam -applaunch 552990 "./replays/$( basename "${_replay}")"
- else
- echo "No file selected"
- fi
- popd
- unset _replay
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement