Dash:
[t2.git] / package / office / openoffice / patches / soffice-detect-mozilla-certificates.diff
blob5d05006976bb4240c01600b233f92276915f45c8
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../openoffice-org/patches/soffice-detect-mozilla-certificates.diff
5 # Copyright (C) 2008 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- desktop/scripts/soffice.sh
18 +++ desktop/scripts/soffice.sh
19 @@ -207,6 +207,24 @@
20 OPENOFFICE_MOZILLA_FIVE_HOME="$sd_inst/program"
21 export OPENOFFICE_MOZILLA_FIVE_HOME
23 +if [ -z "$MOZILLA_CERTIFICATE_FOLDER" ]; then
24 + db=""
25 + dir=""
26 + for d in $HOME/.mozilla/firefox $HOME/.firefox $HOME/.thunderbird $HOME/.gnome2/epiphany/mozilla $HOME/.mozilla/default $HOME/.mozilla; do
27 + if [ -z "$dir" -a -d "$d" ]; then
28 + dir=$d;
29 + fi;
30 + done
31 + if [ -n "$dir" ]; then
32 + cert8=`find $dir -name "cert8.db" | head -n 1`
33 + if [ -n "$cert8" ]; then
34 + profiledir=`dirname "$cert8"`
35 + MOZILLA_CERTIFICATE_FOLDER=$profiledir
36 + export MOZILLA_CERTIFICATE_FOLDER
37 + fi
38 + fi
39 +fi
41 unset XENVIRONMENT
43 # uncomment line below to disable anti aliasing of fonts