diff options
Diffstat (limited to 'linden/indra/newview/linux_tools/wrapper.sh')
-rwxr-xr-x | linden/indra/newview/linux_tools/wrapper.sh | 13 |
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 |
108 | fi | 108 | fi |
109 | 109 | ||
110 | if([ "`uname -m`" = "x86_64" ] && [ -d "${RUN_PATH}/app_settings/mozilla-runtime-linux-x86_64/" ]); then | 110 | export VIEWER_BINARY='do-not-directly-run-imprudence-bin' |
111 | export GST_PLUGIN_PATH="${GST_PLUGIN_PATH}:${RUN_PATH}/lib64/gstreamer-plugins/" | 111 | BINARY_TYPE=$(expr match "$(file -b bin/$VIEWER_BINARY)" '\(.*executable\)') |
112 | 112 | if [ "${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}"' |
114 | else | 114 | else |
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}"' | ||
117 | fi | 116 | fi |
118 | 117 | ||
119 | export SL_CMD='$LL_WRAPPER bin/do-not-directly-run-imprudence-bin' | 118 | export SL_CMD='$LL_WRAPPER bin/$VIEWER_BINARY' |
120 | export SL_OPT="`cat gridargs.dat` $@" | 119 | export SL_OPT="`cat gridargs.dat` $@" |
121 | 120 | ||
122 | # Run the program | 121 | # Run the program |