Advertisement
Guest User

Running Proton without Steam

a guest
Sep 12th, 2024
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.12 KB | Gaming | 0 0
  1. #!/bin/bash
  2.  
  3. # This script creates and launches a Windows executable
  4. # in a Proton environment.
  5. #
  6. # My variables are all lowercase (violating common practice)
  7. # to prevent conflicts and to make it clear what is needed and
  8. # what is optional.
  9.  
  10. workdir=$(pwd)
  11.  
  12.  
  13. ##############
  14. ## Settings ##
  15. ##############
  16.  
  17. ## Game Executable ##
  18. #game_exe="$workdir/game.exe"
  19.  
  20. ## Proton Runner ##
  21. protonexec="/home/$USER/.steam/steam/steamapps/common/Proton - Experimental/proton"
  22.  
  23. ## Proton Data Path ##
  24. protondata="$workdir/proton_data/"
  25.  
  26.  
  27. ##########################
  28. ## Setup and run Proton ##
  29. ##########################
  30.  
  31. ## Define variables ##
  32. export STEAM_COMPAT_CLIENT_INSTALL_PATH="$protondata"
  33. export STEAM_COMPAT_DATA_PATH="$STEAM_COMPAT_CLIENT_INSTALL_PATH"
  34. export WINEPREFIX="$STEAM_COMPAT_DATA_PATH/pfx" # Only used for winetricks
  35.  
  36. ## Create directory structure ##
  37. mkdir -p "$STEAM_COMPAT_DATA_PATH/pfx"
  38.  
  39. ## Launch Proton ##
  40. "$protonexec" run "$game_exe"
  41.  
  42. ## Alternatively launch winetricks ##
  43. # will not use proton.
  44. # Don't forget to comment out the launch proton argument above.
  45. #$WINEPREFIX winetricks
  46.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement