Package: openoffice.org-common Severity: wishlist Tags: patch This is a simple patch over ooo-wrapper that makes OO recognize automatically the digital signature from mozilla if it's available. This will avoid the end user the need to open a terminal and export the MOZILLA_CERTIFICATE_FOLDER environment variable before starting OO from that terminal, what it's not very desirable for most end-users. I have tested it for a month in more than a hundred of installations without any problem. Anyway it would fail if an user has two mozilla profiles. In such case it will locate the signature only for the first one.
I'm not a perl programmer, so I'm sure the patch can be improved by some perl guru, but it works. Hope this help.
--- ooo-wrapper.orig 2006-05-13 21:43:31.000000000 +0200 +++ ooo-wrapper 2006-06-02 13:10:14.000000000 +0200 @@ -89,5 +89,28 @@ print STDERR "\n\n --- Warning - OO.o will not work without a mounted /proc filesystem --- \n\n\n"; } +#define MOZILLA_CERTIFICATE_FOLDER to use firefox digital certificate + +if ( ! exists $ENV{MOZILLA_CERTIFICATE_FOLDER} ) +{ + $mozilla_default_db=""; + if ( -d "$ENV{HOME}/.firefox" ) { + $mozilla_default_db=`find $ENV{HOME}/.firefox -name 'cert8.db'`; + } + + if ( $mozilla_default_db eq "" ) { + if ( -d "$ENV{HOME}/.mozilla" ) { + $mozilla_default_db=`find $ENV{HOME}/.mozilla -name 'cert8.db'`; + } + } + + if (! $mozilla_default_db eq "" ) { + $certificate_folder=`dirname $mozilla_default_db`; + $certificate_folder=substr($certificate_folder,0,length($certificate_folder)-1); + $ENV{MOZILLA_CERTIFICATE_FOLDER} = $certificate_folder; + } + +} + # And here we go. exec "$SystemInstallDir/program/$Binary", @ooo_argv
signature.asc
Description: Esta parte del mensaje está firmada digitalmente