--- /usr/lib/libreoffice/program/soffice.orig 2011-04-23 21:13:24.000000000 +0200 +++ /usr/lib/libreoffice/program/soffice 2011-05-19 11:23:38.000000001 +0200 @@ -17,15 +17,10 @@ fi if [ -z "$MOZILLA_CERTIFICATE_FOLDER" ]; then - for d in $HOME/.local $HOME/.mozilla; do - if [ -d "$d" ]; then - cert8=$(find "$d" -name cert8.db | head -1) - if [ -n "$cert8" ]; then - export MOZILLA_CERTIFICATE_FOLDER=$(dirname $cert8) - break - fi - fi - done + cert8=$( { ls -1 $HOME/.mozilla/*/*/cert8.db || find $HOME/.local -name 'cert8.db' ; } 2>/dev/null | head -n 1 ) + if [ -n "$cert8" ]; then + export MOZILLA_CERTIFICATE_FOLDER=$(dirname $cert8) + fi fi unset XENVIRONMENT