Change the LD_LIBRARY_PATH for native libraries? Hi there, I've just installed FEX-emu on my Android 12 phone running Ubuntu 23.10 in a Proot environment. In order to get proper OpenGL (using zink) and Vulkan using freedreno's turnip, I've manually compiled mesa from source and installed it in /usr/local/lib64 and /usr/local/lib. So I've set: ``` LIBGL_DRIVERS_PATH=/usr/local/lib64/dri:/usr/local/lib/dri VK_ICD_FILENAMES=/usr/local/share/vulkan/icd.d/freedreno_icd.aarch64.json:/usr/local/share/vulkan/icd.d/freedreno_icd.armv7l.json ``` And I've also created a ```/etc/ld.conf.so.d/000-local.conf``` with: ``` /usr/local/lib64 /usr/local/lib ``` This works great for native things like glxinfo, vkcube and supertuxkart: ``` $ MESA_LOADER_DRIVER_OVERRIDE=zink glxinfo ... OpenGL vendor string: Mesa OpenGL renderer string: zink Vulkan 1.3(Turnip Adreno (TM) 640 (MESA_TURNIP)) OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.0.0-devel (git-a921a69010) OpenGL core profile shading language version string: 4.60 OpenGL core profile context flags: no-error OpenGL core profile profile mask: core profile ... $ vkcube Selected GPU 0: Turnip Adreno (TM) 640, type: IntegratedGpu ``` However, when I run steam, it doesn't seem to load the native libGL from /usr/local/lib{,64}: ``` $ MESA_LOADER_DRIVER_OVERRIDE=zink FEXBash steam steam.sh[8786]: Running Steam on ubuntu 23.10 64-bit steam.sh[8786]: STEAM_RUNTIME is enabled by the user setup.sh[8858]: Steam runtime environment up-to-date! steam.sh[8786]: Steam client's requirements are satisfied [2023-12-12 14:00:46] Startup - updater built Dec 8 2023 00:32:59 [2023-12-12 14:00:46] Startup - Steam Client launched with: '/home/mastag/.local/share/Steam/ubuntu12_32/steam' 12/12 14:00:46 Init: Installing breakpad exception handler for appid(steam)/version(1702079146)/tid(8884) MESA-LOADER: failed to open zink: /usr/local/lib/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths /usr/local/lib64/dri:/usr/local/lib/dri, suffix _dri) failed to load driver: zink Looks like steam didn't shutdown cleanly, scheduling immediate update check [2023-12-12 14:00:53] Loading cached metrics from disk (/home/mastag/.local/share/Steam/package/steam_client_metrics.bin) [2023-12-12 14:00:53] Failed to load cached hosts file (File 'update_hosts_cached.vdf' not found), using defaults [2023-12-12 14:00:53] Using the following download hosts for Public, Realm steamglobal [2023-12-12 14:00:53] 1. https://cdn.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in' [2023-12-12 14:00:53] Checking for update on startup [2023-12-12 14:00:53] Checking for available updates... [2023-12-12 14:00:53] Downloading manifest: https://cdn.steamstatic.com/client/steam_client_ubuntu12 [2023-12-12 14:00:53] Manifest download: send request [2023-12-12 14:00:53] Manifest download: waiting for download to finish [2023-12-12 14:00:54] Manifest download: finished [2023-12-12 14:00:54] Download skipped: /client/steam_client_ubuntu12 version 1702079146, installed version 1702079146, existing pending version 0 [2023-12-12 14:00:54] Nothing to do [2023-12-12 14:00:54] Verifying installation... [2023-12-12 14:00:54] Performing checksum verification of executable files [2023-12-12 14:01:08] Verification complete Steam logging initialized: directory: /home/mastag/.local/share/Steam/logs XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xf5f3a9c0 XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xf5f391f0 lspci: Cannot open /proc/bus/pci/devices MESA-LOADER: failed to open zink: /usr/local/lib/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths /usr/local/lib64/dri:/usr/local/lib/dri, suffix _dri) failed to load driver: zink lspci: Cannot open /proc/bus/pci/devices MESA-LOADER: failed to open zink: /usr/local/lib/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths /usr/local/lib64/dri:/usr/local/lib/dri, suffix _dri) failed to load driver: zink steamwebhelper.sh[8923]: Runtime for steamwebhelper: defaulting to /home/mastag/.local/share/Steam/ubuntu12_64/steam-runtime-heavy steamwebhelper.sh[8923]: glibc >= 2.34, partially disabling sandbox until CEF supports clone3() MESA-LOADER: failed to open zink: /usr/local/lib/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths /usr/local/lib64/dri:/usr/local/lib/dri, suffix _dri) failed to load driver: zink glXChooseVisual failed glXChooseVisual failedsrc/steamUI/spewmanager.cpp (184) : Assertion Failed: Error: glXChooseVisual failed src/steamUI/spewmanager.cpp (184) : Assertion Failed: Error: glXChooseVisual failed Error: glXChooseVisual failed12/12 14:01:12 Failed writing minidump, nothing to upload. /home/mastag/.local/share/Steam/steam.sh: line 798: 8884 Segmentation fault "$STEAMROOT/$STEAMEXEPATH" "$@" ``` Any ideas?