From 83770055ddf34873488c551246ceaeb0d5ba6304 Mon Sep 17 00:00:00 2001 From: Andrey Arapov Date: Sun, 7 Aug 2016 13:57:54 +0200 Subject: [PATCH] fixing LD_PRELOAD --- launch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launch b/launch index e0f8c79..b06a07c 100644 --- a/launch +++ b/launch @@ -40,7 +40,7 @@ if [ -e /dev/nvidiactl ]; then fi # Use libgcrypt provided by the Steam docker image (needed by HL1 engine games) -export LD_PRELOAD="/lib/i386-linux-gnu/libgcrypt.so.11 /lib/x86_64-linux-gnu/libgcrypt.so.11" +export LD_PRELOAD="/lib/i386-linux-gnu/libgcrypt.so.11:/lib/x86_64-linux-gnu/libgcrypt.so.11" # # Try to load host's libGL (generic or Nvidia 32/64-bit) drivers @@ -53,6 +53,6 @@ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$(echo /h{1..20}_{32,64} | tr ' ' ':')" # Hint: to find out what's wrong, use `strace` # # 1) Try to load host's Pulse library instead of the one from this image -export LD_PRELOAD="$LD_PRELOAD $(find /h{1..20}_{32,64} -type f -name "*libpulsecommon*" 2>/dev/null)" +export LD_PRELOAD="$LD_PRELOAD:$(find /h{1..20}_{32,64} -type f -name "*libpulsecommon*" -print0 2>/dev/null| tr '\0' ':')" su -p user -c "steam $@"