--- desktop/scripts/soffice.sh~	2007-04-05 08:48:25.919569260 +0200
+++ desktop/scripts/soffice.sh	2007-04-05 09:42:37.278615271 +0200
@@ -179,8 +179,23 @@
 
 # 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)
