Annotation of /trunk/openoffice/patches/openoffice-3.2.1-allow-mozilla-certs.patch
Parent Directory | Revision Log
Revision 1115 -
(hide annotations)
(download)
Sun Aug 22 18:37:54 2010 UTC (14 years, 1 month ago) by niro
File size: 754 byte(s)
Sun Aug 22 18:37:54 2010 UTC (14 years, 1 month ago) by niro
File size: 754 byte(s)
-added
1 | niro | 1115 | --- desktop/scripts/soffice.sh |
2 | +++ desktop/scripts/soffice.sh | ||
3 | @@ -207,6 +207,24 @@ | ||
4 | OPENOFFICE_MOZILLA_FIVE_HOME="$sd_inst/program" | ||
5 | export OPENOFFICE_MOZILLA_FIVE_HOME | ||
6 | |||
7 | +if [ -z "$MOZILLA_CERTIFICATE_FOLDER" ]; then | ||
8 | + db="" | ||
9 | + dir="" | ||
10 | + for d in $HOME/.mozilla/firefox $HOME/.firefox $HOME/.thunderbird $HOME/.gnome2/epiphany/mozilla $HOME/.mozilla/default $HOME/.mozilla; do | ||
11 | + if [ -z "$dir" -a -d "$d" ]; then | ||
12 | + dir=$d; | ||
13 | + fi; | ||
14 | + done | ||
15 | + if [ -n "$dir" ]; then | ||
16 | + cert8=`find $dir -name "cert8.db" | head -n 1` | ||
17 | + if [ -n "$cert8" ]; then | ||
18 | + profiledir=`dirname "$cert8"` | ||
19 | + MOZILLA_CERTIFICATE_FOLDER=$profiledir | ||
20 | + export MOZILLA_CERTIFICATE_FOLDER | ||
21 | + fi | ||
22 | + fi | ||
23 | +fi | ||
24 | + | ||
25 | unset XENVIRONMENT | ||
26 | |||
27 | # uncomment line below to disable anti aliasing of fonts |