Protontricks used to set the CWD of its subshells (-c commands) to the target game's Steam directory, but in the latest beta versions now it sets it to the directory in which Protontricks was called.
This script depended in a few places on that old implicit behavior, such as reading the game's directory with pwd and assuming the CWD when looking for nguninstall.exe. These changes use the (previously undocumented) $STEAM_APP_PATH environment variable that Protontricks sets in its subshells to explicitly set the directory we want.
Protontricks used to set the CWD of its subshells (
-c
commands) to the target game's Steam directory, but in the latest beta versions now it sets it to the directory in which Protontricks was called.This script depended in a few places on that old implicit behavior, such as reading the game's directory with
pwd
and assuming the CWD when looking fornguninstall.exe
. These changes use the (previously undocumented)$STEAM_APP_PATH
environment variable that Protontricks sets in its subshells to explicitly set the directory we want.