diff options
author | Oliver Bolte <obo@openoffice.org> | 2007-07-18 14:04:16 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2007-07-18 14:04:16 +0000 |
commit | c55dc7213c1dd843e664cbf68a6642f11e4d879f (patch) | |
tree | 9ba402739df43362b066b720aba35ef21c628d2e /desktop/scripts | |
parent | c68ef9253b2b0c3d6630993d7df2c51c0644b0bf (diff) |
INTEGRATION: CWS mh23 (1.26.92); FILE MERGED
2007/07/17 15:11:54 mh 1.26.92.1: don't add system path to LD_LIBRARY_PATH, #i76122#
Diffstat (limited to 'desktop/scripts')
-rw-r--r-- | desktop/scripts/soffice.sh | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/desktop/scripts/soffice.sh b/desktop/scripts/soffice.sh index c7719b243b..a5c08d5b86 100644 --- a/desktop/scripts/soffice.sh +++ b/desktop/scripts/soffice.sh @@ -5,9 +5,9 @@ # # $RCSfile: soffice.sh,v $ # -# $Revision: 1.26 $ +# $Revision: 1.27 $ # -# last change: $Author: obo $ $Date: 2007-03-07 13:14:15 $ +# last change: $Author: obo $ $Date: 2007-07-18 15:04:16 $ # # The Contents of this file are made available subject to # the terms of GNU Lesser General Public License Version 2.1. @@ -87,8 +87,23 @@ fi # set search path for shared libraries add_moz_lib= -for moz_lib_path in $MOZILLA_LIBRARY_PATH /usr/lib /usr/lib/mozilla /usr/lib/mozilla-firefox /usr/lib/mozilla-thunderbird /opt/mozilla/lib /opt/MozillaFirefox/lib /opt/MozillaThunderbird/lib; do - test -f $moz_lib_path/libnss3.so && add_moz_lib=":$moz_lib_path" && break; +for moz_lib_path in \ + $MOZILLA_LIBRARY_PATH \ + /usr/lib \ + /usr/lib/mozilla \ + /usr/lib/mozilla-firefox \ + /usr/lib/mozilla-thunderbird \ + /opt/mozilla/lib \ + /opt/MozillaFirefox/lib \ + /opt/MozillaThunderbird/lib; \ +do + if [ -f $moz_lib_path/libnss3.so ]; then + case "$moz_lib_path" in + /usr/lib|/usr/lib64) : ;; + *) add_moz_lib=":$moz_lib_path" + esac + break + fi done case $sd_platform in AIX) |