--- desktop/scripts/soffice.sh.orig 2013-03-04 06:57:17.061824589 +0000 +++ desktop/scripts/soffice.sh 2013-03-04 07:30:31.892034863 +0000 @@ -149,5 +149,22 @@ exec > valgrind.log 2>&1 fi +# ALT: find certificates database folder +_find_cert_dir() { # path [mindepth [maxdepth [name [variable_name]]]] + local md="${2:-1}" + local Md="${3:-10}" + local N="${4:-cert8.db}" + local var="${5:-MOZILLA_CERTIFICATE_FOLDER}" + local cert8 + test -d "$1" || return + cert8="$(find "$1" -mindepth "$md" -maxdepth "$Md" -name "$N" -print -quit)" + test -n "$cert8" || return + eval "export $var='$(dirname $cert8)'" +} + +test -n "$MOZILLA_CERTIFICATE_FOLDER" || _find_cert_dir $HOME/.mozilla/firefox 2 2 +test -n "$MOZILLA_CERTIFICATE_FOLDER" || _find_cert_dir $HOME/.mozilla 3 3 +test -n "$MOZILLA_CERTIFICATE_FOLDER" || _find_cert_dir $HOME/.local + # oosplash does the rest: forcing pages in, javaldx etc. are exec $VALGRINDCHECK $STRACECHECK "$sd_prog/oosplash" "$@"