Run Windows executables in Steam Proton prefixes
prex ls
1245620 ELDEN RING default
1888160 ARMORED CORE VI FIRES OF RUBICON proton_experimental
2050650 Resident Evil 4 default
2622380 ELDEN RING NIGHTREIGN defaultprex users
59710912 Dark Empath Amogus
1516607315 zilfeejelprex ps
1245620 ELDEN RINGprex run 2050650 ~/Downloads/Fluffy\ Mod\ Manager-818-3-068-1765672670/Modmanager.exeprex run --single-instance 489830 "/games/steam/steamapps/compatdata/489830/pfx/drive_c/Program Files/Black Tree Gaming Ltd/Vortex/Vortex.exe" --download nxm://exampleRegister a mod manager for a game (the exe must live inside that game's prefix):
prex mm add 489830 "/games/steam/steamapps/compatdata/489830/pfx/drive_c/Program Files/Black Tree Gaming Ltd/Vortex/Vortex.exe"
prex mm ls
489830 The Elder Scrolls V: Skyrim Special Edition inactive /games/steam/steamapps/compatdata/489830/pfx/drive_c/Program Files/Black Tree Gaming Ltd/Vortex/Vortex.exe
prex mm set-active 489830Remove a mod manager registration:
prex mm remove 489830Handle NXM links with the active mod manager:
prex nxm "nxm://skyrimspecialedition/mods/12345"Example desktop entry:
[Desktop Entry]
Name=Prex NXM Handler
Comment=Handle NXM links for active mod manager
Type=Application
NoDisplay=true
MimeType=x-scheme-handler/nxm;
Exec=prex nxm %uprex path 2050650
/games/steam/steamapps/compatdata/2050650/pfx
cd "$(prex path 2050650)"prex attach 1245620 "/games/steam/steamapps/compatdata/1245620/prex/drive_c/Program Files/Cheat Engine/Cheat Engine.exe"prex attach --bypass-gamescope 1245620 "/games/steam/steamapps/compatdata/1245620/prex/drive_c/Program Files/Cheat Engine/Cheat Engine.exe"Keeps any launch options you set in Steam, for example:
LD_PRELOAD= gamescope -f -H 1440 -h 1440 -r 75 --mangoapp -- env LD_PRELOAD="$LD_PRELOAD" gamemoderun %command%prex launch 1245620 --user-id 59710912 "Game/ersc_launcher.exe" Dynamic completions are generated at shell runtime. These examples source the generated script on startup:
Bash
echo 'source <(COMPLETE=bash prex)' >> ~/.bashrcZsh
echo 'source <(COMPLETE=zsh prex)' >> ~/.zshrcSupported shells: bash, zsh, fish, elvish, (powershell ಠ_ಠ).