aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/linux_tools/wrapper.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xlinden/indra/newview/linux_tools/wrapper.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/linden/indra/newview/linux_tools/wrapper.sh b/linden/indra/newview/linux_tools/wrapper.sh
index bc2c127..a43ebd5 100755
--- a/linden/indra/newview/linux_tools/wrapper.sh
+++ b/linden/indra/newview/linux_tools/wrapper.sh
@@ -107,16 +107,15 @@ if [ -n "$LL_TCMALLOC" ]; then
107 fi 107 fi
108fi 108fi
109 109
110if([ "`uname -m`" = "x86_64" ] && [ -d "${RUN_PATH}/app_settings/mozilla-runtime-linux-x86_64/" ]); then 110export VIEWER_BINARY='do-not-directly-run-imprudence-bin'
111 export GST_PLUGIN_PATH="${GST_PLUGIN_PATH}:${RUN_PATH}/lib64/gstreamer-plugins/" 111BINARY_TYPE=$(expr match "$(file -b bin/$VIEWER_BINARY)" '\(.*executable\)')
112 112if [ "${BINARY_TYPE}" == "ELF 64-bit LSB executable" ]; then
113 export SL_ENV='LD_LIBRARY_PATH="`pwd`"/lib64:"`pwd`"/lib32:"`pwd`"/app_settings/mozilla-runtime-linux-x86_64:"${LD_LIBRARY_PATH}"' 113 export SL_ENV='LD_LIBRARY_PATH="`pwd`"/lib64:"`pwd`"/lib32:"${LD_LIBRARY_PATH}"'
114else 114else
115 export GST_PLUGIN_PATH="${GST_PLUGIN_PATH}:${RUN_PATH}/lib/gstreamer-plugins/" 115 export SL_ENV='LD_LIBRARY_PATH="`pwd`"/lib:"${LD_LIBRARY_PATH}"'
116 export SL_ENV='LD_LIBRARY_PATH="`pwd`"/lib:"`pwd`"/app_settings/mozilla-runtime-linux-i686:"${LD_LIBRARY_PATH}"'
117fi 116fi
118 117
119export SL_CMD='$LL_WRAPPER bin/do-not-directly-run-imprudence-bin' 118export SL_CMD='$LL_WRAPPER bin/$VIEWER_BINARY'
120export SL_OPT="`cat gridargs.dat` $@" 119export SL_OPT="`cat gridargs.dat` $@"
121 120
122# Run the program 121# Run the program