D10221 / winenv

Sets env vars and paths to run an arbitrary command on steam wine/proton app prefixes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

winenv

Sets env vars and paths to help run an arbitrary command on steam wine/proton app prefixes

usage

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

Config

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

Dependencies

  • bash
  • steamtinkerlaunch
  • steam
  • GE-Proton
  • nodejs

Examples

Winecfg

winenv 123456 'wine winecfg'

Wine Uninstaller

winenv 123456 'wine uninstaller'

Remove prefix (forever)

winenv 123456 'rm $WINEPREFIX -rf'

Run with Proton

winenv 123456 'proton run program.exe'

... or

winenv 123456 '$PROTON run program.exe'

wine console/terminal

winenv 123456 'wine wineconsole cmd'
# from there 
start /unix /usr/bin/gedit

... or

'wine cmd /c start /unix /usr/bin/gedit'

Wine path

winenv 244210 'wine winepath c:\' 
# /$/.local/share/Steam/steamapps/compatdata/$APPID/pfx/dosdevices/c:/'

Task manager

 winenv 244210 'wine taskmgr'

Which proton

./winenv 244210 'which proton' # which proton I'm running

About

Sets env vars and paths to run an arbitrary command on steam wine/proton app prefixes


Languages

Language:JavaScript 65.3%Language:Shell 33.2%Language:TypeScript 1.5%