_v2-entry-point: Unset LD_PRELOAD until launch
From: @luigipiucco, via https://gitlab.com/luigipiucco/steamlinuxruntime/-/tree/ld-preload-nixos as of 9141cbec
Steam puts the game overlay renderer library in
LD_PRELOAD
, which depends on libstdc++. On NixOS, the first call to pressure-vessel-adverb will fail because of this dependency. So we remove the variable in the entry point, and pressure-vessel-unruntime sets it back to the original value (we setSYSTEM_LD_PRELOAD
).
Edited by Simon McVittie