Package: openoffice.org-common
Version: 2.0.4~rc3-1
Severity: normal
Tags: patch


The /usr/lib/openoffice/program/soffice script produces errors from
dirname(1) when the user's Mozilla or Firefox profile directory name
contains spaces. Also, when the user has more than one profile, 
MOZILLA_CERTIFICATE_FOLDER was being set to a nonsensical value.
The attached patch rectifies both these problems.

(Btw, I have no idea why it's even attempting to locate and use
the cert8.db file from within Mozilla, it seems like a giant hack
for no purpose that I can determine, but I got bored of seeing 
the errors :)

Regards,
Ben

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (100, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-qolc-2006100302
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages openoffice.org-common depends on:
ii  dictionaries-common [openoffi 0.70.2     Common utilities for spelling dict

openoffice.org-common recommends no packages.

-- no debconf information
--- /usr/lib/openoffice/program/soffice.orig    2006-10-03 00:08:55.000000000 
+0100
+++ /usr/lib/openoffice/program/soffice 2006-10-06 13:01:17.000000000 +0100
@@ -198,10 +198,12 @@
                fi;
        done
        if [ -n "$dir" ]; then
-               cert8=`find $dir -name "cert8.db"`
-               profiledir=`dirname $cert8`
-               MOZILLA_CERTIFICATE_FOLDER=$profiledir
-               export MOZILLA_CERTIFICATE_FOLDER
+               cert8=`find $dir -name "cert8.db" | head -1`
+               if [ -n "$cert8" ]; then
+                       profiledir=`dirname "$cert8"`
+                       MOZILLA_CERTIFICATE_FOLDER=$profiledir
+                       export MOZILLA_CERTIFICATE_FOLDER
+               fi
        fi
 fi
 

Reply via email to