36 lines
1.3 KiB
Bash
Executable File
36 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/zsh
|
|
|
|
# Run Windows programs through Proton from Steams installation, without
|
|
# starting the main Steam client.
|
|
#
|
|
# Create a directory for the Proton environment to run in. As an example make
|
|
# a folder "proton" in your home and point to it in the "env_dir" variable.
|
|
# Then look in the "steamapps/common/" folder in your Steam installation for
|
|
# available Proton versions to use. Pick one and point the variable
|
|
# "install_dir" to that directory. Optionally install this script in a
|
|
# directory that is in your $PATH, so you can run it easily from any place.
|
|
#
|
|
# Usage:
|
|
# proton ./program.exe
|
|
|
|
# Path to the directory where the actual Proton from Steam is installed in.
|
|
# install_dir="$HOME/.steam/steam/steamapps/common/Proton - Experimental"
|
|
install_dir="$HOME/gamez/steam-linux/steamapps/common/Proton - Experimental"
|
|
# Steam / Client path
|
|
export STEAM_COMPAT_CLIENT_INSTALL_PATH="$HOME/.steam/steam"
|
|
|
|
# Data folder for Proton/WINE environment. Folder must exist.
|
|
env_dir=$HOME/proton
|
|
|
|
# Proton modes to run
|
|
# run = start target app
|
|
# waitforexitandrun = wait for wineserver to shut down
|
|
# getcompatpath = linux -> windows path
|
|
# getnativepath = windows -> linux path
|
|
mode=run
|
|
|
|
# EXECUTE
|
|
export STEAM_COMPAT_DATA_PATH=$env_dir
|
|
"$install_dir/proton" $mode $*
|
|
|