Advertisement
vonschutter

Untitled

Nov 14th, 2022
973
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.55 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. #::                             STEAM LINUX REPLAY LAUNCHER
  4. #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  5. #::::::::::::::::::::::::::::::::::::::::::::// OEM ENABLE CONFIG //::::::::::::::::::::::::::::::::::// Linux //::::::::
  6. #::
  7. #:: Author:     Vonschutter
  8. #:: Version     1.00
  9. #::
  10. #::
  11. #:: Purpose: The purpose of this script is to simplify watching your replays.
  12. #::      As per the writing of this script World of Warships automatically stores the last 30
  13. #::      replays on your system. There have been many posts asking hos to watch them so this
  14. #::      script helps facilitate that.
  15. #::
  16. #:: Usage:  Simply execute this script to accomplish this task. No parameters required.
  17. #::     Source: https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-Line_Parameters_2
  18. #::
  19. #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  20. #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  21. #
  22. # This script is shared in the hopes that someone will find it useful.
  23. # This script is intended to live in the ~/bin/ or /bin/ folder, alternatively in the $PATH.
  24.  
  25.  
  26.  
  27. pushd ~/.steam/debian-installation/steamapps/common/World\ of\ Warships/replays
  28.  
  29.     _replay=$( zenity --file-selection )
  30.     if [[ -n ${_replay}  ]] ; then
  31.         steam -applaunch 552990 "./replays/$( basename "${_replay}")"
  32.     else
  33.         echo "No file selected"
  34.     fi
  35.    
  36. popd
  37. unset _replay
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement