Hello @literal-0x4e, the previous evaluation on https://github.com/ValveSoftware/csgo-osx-linux/issues/2584 still stands in as much as you've disabled the Steam runtime and this issue is specific to that configuration. Disabling the Steam runtime is not supported.
This issue should be evaluated by your package maintainer(s) that helped you disable the Steam runtime.
@kisak-valve Steam itself is unsetting LD_LIBRARY_PATH. Package maintainers are at Your mercy to not to that. Package sets the required environment variables, then Steam goes right ahead and break it all by unsetting them.
TL;DR I can't ask distro maintainers to stop VALVe from scrubbing the envirenment.
Nothing extracted yet.
Your system information
Please describe your issue in as much detail as possible:
TL;DR
Since autumn 2020 the Steam client is scrubbing whatever
LD_LIBRARY_PATHis set to when the steam client it launched and "moves" it to another environment variable, namelySYSTEM_LD_LIBRARY_PATH, which is making some games to fail unlessLD_LIBRARY_PATHis again manually set to the original value in the game's launch options.Long Explanation
It apears the
LD_LIBRARY_PATH, as set up by the distro package gets moved toSYSTEM_LD_LIBRARY_PATHwhich then proceeds to be completely ignored by games being launch. As a result, some of the libraries I certainly have, that are under non-default paths, are not found by some games that need them. I believe this is definitely a bug related to the "improvements inLD_LIBRARY_PATHhandling", as listed in Steam client's changelog, as my original observation of the issue co-incided with the beta release containing that change.One such notable library is
libcurl-gnutls.so.4, which I have under/usr/lib64/debiancompatand/usr/lib/debiancompatfor x86-64 and x86 versions, respectively. At least one VALVe game (Counter Strike: Global Offensive) is also affected by this issue and does not run without a workaround.I did these steps to confirm the issue when launching CSGO:
env dump when running the game showed
SYSTEM_LD_LIBRARY_PATHis set:while
LD_LIBRARY_PATHis empty:Meanwhile, steam client gets invoked with LD_LIBRARY_PATH definitely set to all the required directories:
Steps for reproducing this issue:
LD_LIBRARY_PATHand launch the steam clientLD_LIBRARY_PATHLD_LIBRARY_PATHcleared by Steam client instead and fails to loadNOTE: I previously reported this bug under [csgo-osx-linux bug #2584](https://github.com/ValveSoftware/csgo-osx-linux/issues/2584), but it got closed before I could find the root cause (i.e. this very problem with the steam client). I updated that report to provide all this info plus some csgo-specific bits and requested a move to steam-for-linux, but since that request was ignored for around three months, I'm opening a new issue myself.