summaryrefslogtreecommitdiffstats
path: root/extra/openoffice/soffice-detect-mozilla-certificates.diff
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-11 22:12:11 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-11 22:12:11 +0200
commitafd1de4942c9cfe78a359af2d461e8d85967ecd9 (patch)
tree99449ebb715e09b0587a87aa0071608af52a187b /extra/openoffice/soffice-detect-mozilla-certificates.diff
parentb8cc8a29eda028a61b7a0862279b27c6616c791a (diff)
downloadnutyx-pakxe-afd1de4942c9cfe78a359af2d461e8d85967ecd9.tar.gz
nutyx-pakxe-afd1de4942c9cfe78a359af2d461e8d85967ecd9.tar.bz2
nutyx-pakxe-afd1de4942c9cfe78a359af2d461e8d85967ecd9.tar.xz
nutyx-pakxe-afd1de4942c9cfe78a359af2d461e8d85967ecd9.zip
Ajout de openoffice#3.1.0-1
Diffstat (limited to 'extra/openoffice/soffice-detect-mozilla-certificates.diff')
-rwxr-xr-xextra/openoffice/soffice-detect-mozilla-certificates.diff27
1 files changed, 27 insertions, 0 deletions
diff --git a/extra/openoffice/soffice-detect-mozilla-certificates.diff b/extra/openoffice/soffice-detect-mozilla-certificates.diff
new file mode 100755
index 000000000..b3be61bc4
--- /dev/null
+++ b/extra/openoffice/soffice-detect-mozilla-certificates.diff
@@ -0,0 +1,27 @@
+--- desktop/scripts/soffice.sh
++++ desktop/scripts/soffice.sh
+@@ -207,6 +207,24 @@
+ OPENOFFICE_MOZILLA_FIVE_HOME="$sd_inst/program"
+ export OPENOFFICE_MOZILLA_FIVE_HOME
+
++if [ -z "$MOZILLA_CERTIFICATE_FOLDER" ]; then
++ db=""
++ dir=""
++ for d in $HOME/.mozilla/firefox $HOME/.firefox $HOME/.thunderbird $HOME/.gnome2/epiphany/mozilla $HOME/.mozilla/default $HOME/.mozilla; do
++ if [ -z "$dir" -a -d "$d" ]; then
++ dir=$d;
++ fi;
++ done
++ if [ -n "$dir" ]; then
++ cert8=`find $dir -name "cert8.db" | head -n 1`
++ if [ -n "$cert8" ]; then
++ profiledir=`dirname "$cert8"`
++ MOZILLA_CERTIFICATE_FOLDER=$profiledir
++ export MOZILLA_CERTIFICATE_FOLDER
++ fi
++ fi
++fi
++
+ unset XENVIRONMENT
+
+ # uncomment line below to disable anti aliasing of fonts