Sets env vars and paths to help run an arbitrary command on steam wine/proton app prefixes
Show usage
winenv # with no arguments
Run $command
with $APPID
env
winenv <APPID> '<shell-command>'
Show env for $APPID
winenv <APPID>' # show env for <APPID>"
TODO:
winenv install # copy it self to "$HOME/.local/bin/"
winenv uninstall # remove it self from "$HOME/.local/bin/" and it's config from "$HOME/.config/winenv"
winenv update # replace it self with new version
Defaults to
# steam
STEAM_HOME=HOME/.local/share/Steam
STEAM_APPS=$STEAM_HOME/steamapps
STEAM_APPS_COMMON=$STEAM_APPS/common
# steam compat
STEAM_COMPAT_CLIENT_INSTALL_PATH=STEAM_HOME
STEAM_COMPATTOOLS=$STEAM_HOME/compatibilitytools.d
Reads from:
$PWD\.winenv
$HOME\.config\winenv\.winenv
In That order
https://wiki.winehq.org/List_of_Commands
- bash
- steamtinkerlaunch
- steam
- GE-Proton
- nodejs
winenv 123456 'wine winecfg'
winenv 123456 'wine uninstaller'
winenv 123456 'rm $WINEPREFIX -rf'
winenv 123456 'proton run program.exe'
... or
winenv 123456 '$PROTON run program.exe'
winenv 123456 'wine wineconsole cmd'
# from there
start /unix /usr/bin/gedit
... or
'wine cmd /c start /unix /usr/bin/gedit'
winenv 244210 'wine winepath c:\'
# /$/.local/share/Steam/steamapps/compatdata/$APPID/pfx/dosdevices/c:/'
winenv 244210 'wine taskmgr'
./winenv 244210 'which proton' # which proton I'm running