Package: openoffice.org-writer
Version: 1:3.1.1-8
Severity: normal
Tags: patch

The mailcap entry for Microsoft Windows *doc files does not work:

$ see --debug Anmeldung_Faltertage08_Küster.doc 
 - parsing parameter "Anmeldung_Faltertage08_Küster.doc"
 - Reading mime.types file "/home/frank/.mime.types"...
 - Reading mime.types file "/etc/mime.types"...
 - extension "doc" maps to mime-type "application/msword"
 - Reading mailcap file "/home/frank/.mailcap"...
 - Reading mailcap file "/etc/mailcap"...
Processing file "Anmeldung_Faltertage08_Küster.doc" of type 
"application/msword" (encoding=none)...
 - checking mailcap entry "application/msword; soffice -no-oosplash -writer 
'%s'; edit=soffice -no-oosplash -writer '%s'; test=test -n "$DISPLAY"; 
description="Microsoft Word Document"; nametemplate=%s.doc"
 - program to execute: soffice -no-oosplash -writer '%s'
 - running test: test -n "$DISPLAY"  (result=0=true)
 - filename contains shell meta-characters; aliased to '/tmp/fileIR9TRR.doc'
 - executing: soffice -no-oosplash -writer '/tmp/fileIR9TRR.doc'
terminate called after throwing an instance of 
'com::sun::star::uno::RuntimeException'

It's the "-no-oosplash" option that causes the crash, without it it
works.  The attached patch should fix this, but probably the same change
is needed for other openoffice applications.





-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: lang=de...@euro, lc_ctype=de...@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash

Versions of packages openoffice.org-writer depends on:
ii  libc6                  2.10.2-2          GNU C Library: Shared libraries
ii  libgcc1                1:4.4.2-9         GCC support library
ii  libicu42               4.2.1-3           International Components for Unico
ii  libstdc++6             4.4.2-9           The GNU Standard C++ Library v3
ii  libstlport4.6ldbl      4.6.2-7           STLport C++ class library
ii  libwpd8c2a             0.8.14-1          Library for handling WordPerfect d
ii  libwps-0.1-1           0.1.2-1           Works text file format import filt
ii  openoffice.org-base-co 1:3.1.1-8         full-featured office productivity 
ii  openoffice.org-core    1:3.1.1-8         full-featured office productivity 
ii  ure                    1.5.1+OOo3.1.1-14 OpenOffice.org UNO runtime environ
ii  zlib1g                 1:1.2.3.4.dfsg-3  compression library - runtime

Versions of packages openoffice.org-writer recommends:
ii  gcj-4.4-jre [java5-runtime] 4.4.3-1      Java runtime environment using GIJ
ii  gcj-jre [java5-runtime]     4:4.4.2-3    Java runtime environment using GIJ
ii  openjdk-6-jre [java5-runtim 6b17~pre3-1  OpenJDK Java runtime, using Hotspo
pn  openoffice.org-emailmerge   <none>       (no description available)
ii  openoffice.org-filter-binfi 1:3.1.1-8    full-featured office productivity 
ii  openoffice.org-java-common  1:3.1.1-8    full-featured office productivity 
ii  openoffice.org-math         1:3.1.1-8    full-featured office productivity 
ii  sun-java5-jre [java5-runtim 1.5.0-17-0.1 Sun Java(TM) Runtime Environment (

Versions of packages openoffice.org-writer suggests:
ii  openoffice.org-base           1:3.1.1-8  full-featured office productivity 
ii  openoffice.org-gcj            1:3.1.1-8  full-featured office productivity 

Versions of packages openoffice.org-core depends on:
ii  fontconfig             2.8.0-2           generic font configuration library
ii  libc6                  2.10.2-2          GNU C Library: Shared libraries
ii  libcairo2              1.8.8-2           The Cairo 2D vector graphics libra
ii  libcurl3-gnutls        7.19.7-1          Multi-protocol file transfer libra
ii  libdb4.8               4.8.26-1          Berkeley v4.8 Database Libraries [
ii  libexpat1              2.0.1-7           XML parsing C library - runtime li
ii  libfreetype6           2.3.11-1          FreeType 2 font engine, shared lib
ii  libgcc1                1:4.4.2-9         GCC support library
ii  libglib2.0-0           2.22.4-1          The GLib library of C routines
ii  libgstreamer-plugins-b 0.10.25-7         GStreamer libraries from the "base
ii  libgstreamer0.10-0     0.10.25-4+b1      Core GStreamer libraries and eleme
ii  libgtk2.0-0            2.18.6-1          The GTK+ graphical user interface 
ii  libhunspell-1.2-0      1.2.8-6           spell checker and morphological an
ii  libhyphen0             2.4-6             ALTLinux hyphenation library - sha
ii  libice6                2:1.0.6-1         X11 Inter-Client Exchange library
ii  libicu42               4.2.1-3           International Components for Unico
ii  libjpeg62              6b-15             The Independent JPEG Group's JPEG 
ii  libldap-2.4-2          2.4.17-2.1        OpenLDAP libraries
ii  libneon27-gnutls       0.29.0-1          An HTTP and WebDAV client library 
ii  libnspr4-0d            4.8.3-1           NetScape Portable Runtime Library
ii  libnss3-1d             3.12.5-2          Network Security Service libraries
ii  librdf0                1.0.10-1          Redland Resource Description Frame
ii  libsm6                 2:1.1.1-1         X11 Session Management library
ii  libstdc++6             4.4.2-9           The GNU Standard C++ Library v3
ii  libstlport4.6ldbl      4.6.2-7           STLport C++ class library
ii  libx11-6               2:1.3.3-1         X11 client-side library
ii  libxaw7                2:1.0.7-1         X11 Athena Widget library
ii  libxext6               2:1.1.1-2         X11 miscellaneous extension librar
ii  libxinerama1           2:1.1-2           X11 Xinerama extension library
ii  libxml2                2.7.6.dfsg-2+b1   GNOME XML library
ii  libxrandr2             2:1.3.0-2         X11 RandR extension library
ii  libxrender1            1:0.9.5-1         X Rendering Extension client libra
ii  libxslt1.1             1.1.26-1+b1       XSLT processing library - runtime 
ii  libxt6                 1:1.0.7-1         X11 toolkit intrinsics library
ii  libxtst6               2:1.1.0-2         X11 Testing -- Resource extension 
ii  openoffice.org-common  1:3.1.1-14        full-featured office productivity 
ii  ttf-opensymbol         1:3.1.1-14        OpenSymbol TrueType font
ii  ure                    1.5.1+OOo3.1.1-14 OpenOffice.org UNO runtime environ
ii  zlib1g                 1:1.2.3.4.dfsg-3  compression library - runtime

-- no debconf information

-- 
Dr. Frank Küster
Debian Developer (TeXLive)
VCD Aschaffenburg-Miltenberg, ADFC Miltenberg
B90/Grüne KV Miltenberg

--- /usr/lib/mime/packages/openoffice.org-writer	2009-11-17 03:06:04.000000000 +0100
+++ openoffice.org-writer	2010-02-13 22:23:37.000000000 +0100
@@ -2,35 +2,35 @@
 # shared-mime-info
 
 # Generic
-application/rtf; soffice -no-oosplash -writer '%s'; edit=soffice -no-oosplash -writer '%s'; test=test -n "$DISPLAY"; description="Rich Text Format"; nametemplate=%s.rtf; priority=3
-application/x-extension-txt; soffice -no-oosplash -writer '%s'; edit=soffice -no-oosplash -writer '%s'; test=test -n "$DISPLAY"; description="Plain Text Document"; nametemplate=%s.txt; priority=3
-application/x-t602; soffice -no-oosplash -writer '%s'; edit=soffice -no-oosplash -writer '%s'; test=test -n "$DISPLAY"; description="T602 Document"; nametemplate=%s.602; priority=3
+application/rtf; soffice -nologo -writer '%s'; edit=soffice -nologo -writer '%s'; test=test -n "$DISPLAY"; description="Rich Text Format"; nametemplate=%s.rtf; priority=3
+application/x-extension-txt; soffice -nologo -writer '%s'; edit=soffice -nologo -writer '%s'; test=test -n "$DISPLAY"; description="Plain Text Document"; nametemplate=%s.txt; priority=3
+application/x-t602; soffice -nologo -writer '%s'; edit=soffice -nologo -writer '%s'; test=test -n "$DISPLAY"; description="T602 Document"; nametemplate=%s.602; priority=3
 
 # Corel WordPerfect
-application/vnd.wordperfect; soffice -no-oosplash -writer '%s'; edit=soffice -no-oosplash -writer '%s'; test=test -n "$DISPLAY"; description="WordPerfect Document"; nametemplate=%s.wp; priority=3
+application/vnd.wordperfect; soffice -nologo -writer '%s'; edit=soffice -nologo -writer '%s'; test=test -n "$DISPLAY"; description="WordPerfect Document"; nametemplate=%s.wp; priority=3
 
 # ECMA Office Open XML (Microsoft Office 2007)
-application/vnd.ms-word.document.macroEnabled.12; soffice -no-oosplash -writer '%s'; edit=soffice -no-oosplash -writer '%s'; test=test -n "$DISPLAY"; description="Office Open XML Document with Macros Enabled"; nametemplate=%s.docm; priority=3
-application/vnd.ms-word.template.macroEnabled.12; soffice -no-oosplash -writer '%s'; edit=soffice -no-oosplash -writer '%s'; test=test -n "$DISPLAY"; description="Office Open XML Document Template with Macros Enabled"; nametemplate=%s.dotm; priority=3
-application/vnd.openxmlformats-officedocument.wordprocessingml.document; soffice -no-oosplash -writer '%s'; edit=soffice -no-oosplash -writer '%s'; test=test -n "$DISPLAY"; description="Office Open XML Document"; nametemplate=%s.docx; priority=3
-application/vnd.openxmlformats-officedocument.wordprocessingml.template; soffice -no-oosplash -writer '%s'; edit=soffice -no-oosplash -writer '%s'; test=test -n "$DISPLAY"; description="Office Open XML Document Template"; nametemplate=%s.dotx; priority=3
+application/vnd.ms-word.document.macroEnabled.12; soffice -nologo -writer '%s'; edit=soffice -nologo -writer '%s'; test=test -n "$DISPLAY"; description="Office Open XML Document with Macros Enabled"; nametemplate=%s.docm; priority=3
+application/vnd.ms-word.template.macroEnabled.12; soffice -nologo -writer '%s'; edit=soffice -nologo -writer '%s'; test=test -n "$DISPLAY"; description="Office Open XML Document Template with Macros Enabled"; nametemplate=%s.dotm; priority=3
+application/vnd.openxmlformats-officedocument.wordprocessingml.document; soffice -nologo -writer '%s'; edit=soffice -nologo -writer '%s'; test=test -n "$DISPLAY"; description="Office Open XML Document"; nametemplate=%s.docx; priority=3
+application/vnd.openxmlformats-officedocument.wordprocessingml.template; soffice -nologo -writer '%s'; edit=soffice -nologo -writer '%s'; test=test -n "$DISPLAY"; description="Office Open XML Document Template"; nametemplate=%s.dotx; priority=3
 
 # Microsoft Word
-application/msword; soffice -no-oosplash -writer '%s'; edit=soffice -no-oosplash -writer '%s'; test=test -n "$DISPLAY"; description="Microsoft Word Document"; nametemplate=%s.doc; priority=3
+application/msword; soffice -nologo -writer '%s'; edit=soffice -nologo -writer '%s'; test=test -n "$DISPLAY"; description="Microsoft Word Document"; nametemplate=%s.doc; priority=3
 
 # Microsoft Works
-application/vnd.ms-works; soffice -no-oosplash -writer '%s'; edit=soffice -no-oosplash -writer '%s'; test=test -n "$DISPLAY"; description="Microsoft Works Document"; nametemplate=%s.wps; priority=3
+application/vnd.ms-works; soffice -nologo -writer '%s'; edit=soffice -nologo -writer '%s'; test=test -n "$DISPLAY"; description="Microsoft Works Document"; nametemplate=%s.wps; priority=3
 
 # OASIS OpenDocument Format
-application/vnd.oasis.opendocument.text; soffice -no-oosplash -writer '%s'; edit=soffice -no-oosplash -writer '%s'; test=test -n "$DISPLAY"; description="OpenDocument Text Document"; nametemplate=%s.odt; priority=9
-application/vnd.oasis.opendocument.text-master; soffice -no-oosplash -global '%s'; edit=soffice -no-oosplash -writer '%s'; test=test -n "$DISPLAY"; description="OpenDocument Master Document"; nametemplate=%s.odm; priority=9
-application/vnd.oasis.opendocument.text-template; soffice -no-oosplash -writer '%s'; edit=soffice -no-oosplash -writer '%s'; test=test -n "$DISPLAY"; description="OpenDocument Text Document Template"; nametemplate=%s.ott; priority=9
-application/vnd.oasis.opendocument.text-web; soffice -no-oosplash -web '%s'; edit=soffice -no-oosplash -web '%s'; test=test -n "$DISPLAY"; description="OpenDocument HTML Document Template"; nametemplate=%s.oth; priority=9
+application/vnd.oasis.opendocument.text; soffice -nologo -writer '%s'; edit=soffice -nologo -writer '%s'; test=test -n "$DISPLAY"; description="OpenDocument Text Document"; nametemplate=%s.odt; priority=9
+application/vnd.oasis.opendocument.text-master; soffice -nologo -global '%s'; edit=soffice -nologo -writer '%s'; test=test -n "$DISPLAY"; description="OpenDocument Master Document"; nametemplate=%s.odm; priority=9
+application/vnd.oasis.opendocument.text-template; soffice -nologo -writer '%s'; edit=soffice -nologo -writer '%s'; test=test -n "$DISPLAY"; description="OpenDocument Text Document Template"; nametemplate=%s.ott; priority=9
+application/vnd.oasis.opendocument.text-web; soffice -nologo -web '%s'; edit=soffice -nologo -web '%s'; test=test -n "$DISPLAY"; description="OpenDocument HTML Document Template"; nametemplate=%s.oth; priority=9
 
 # OpenOffice.org 1.0
-application/vnd.sun.xml.writer; soffice -no-oosplash -writer '%s'; edit=soffice -no-oosplash -writer '%s'; description="OpenOffice.org Text Document"; nametemplate=%s.sxw; priority=8
-application/vnd.sun.xml.writer.global; soffice -no-oosplash -global '%s'; edit=soffice -no-oosplash -writer '%s'; description="OpenOffice.org Master Document"; nametemplate=%s.sxg; priority=8
-application/vnd.sun.xml.writer.template; soffice -no-oosplash -writer '%s'; edit=soffice -no-oosplash -writer '%s'; description="OpenOffice.org Text Document Template"; nametemplate=%s.stw; priority=8
+application/vnd.sun.xml.writer; soffice -nologo -writer '%s'; edit=soffice -nologo -writer '%s'; description="OpenOffice.org Text Document"; nametemplate=%s.sxw; priority=8
+application/vnd.sun.xml.writer.global; soffice -nologo -global '%s'; edit=soffice -nologo -writer '%s'; description="OpenOffice.org Master Document"; nametemplate=%s.sxg; priority=8
+application/vnd.sun.xml.writer.template; soffice -nologo -writer '%s'; edit=soffice -nologo -writer '%s'; description="OpenOffice.org Text Document Template"; nametemplate=%s.stw; priority=8
 
 #
 ###
@@ -38,9 +38,9 @@
 ###
 # KDE 3 (Obsolete)
 
-application/wordperfect; soffice -no-oosplash -writer '%s'; edit=soffice -no-oosplash -writer '%s'; test=test -n "$DISPLAY"; description="WordPerfect Document"; nametemplate=%s.wp; priority=3
-text/plain; soffice -no-oosplash -writer '%s'; edit=soffice -no-oosplash -writer '%s'; test=test -n "$DISPLAY"; description="Plain Text Document"; nametemplate=%s.txt; priority=3
-text/rtf; soffice -no-oosplash -writer '%s'; edit=soffice -no-oosplash -writer '%s'; test=test -n "$DISPLAY"; description="Rich Text Format"; nametemplate=%s.rtf; priority=3
+application/wordperfect; soffice -nologo -writer '%s'; edit=soffice -nologo -writer '%s'; test=test -n "$DISPLAY"; description="WordPerfect Document"; nametemplate=%s.wp; priority=3
+text/plain; soffice -nologo -writer '%s'; edit=soffice -nologo -writer '%s'; test=test -n "$DISPLAY"; description="Plain Text Document"; nametemplate=%s.txt; priority=3
+text/rtf; soffice -nologo -writer '%s'; edit=soffice -nologo -writer '%s'; test=test -n "$DISPLAY"; description="Rich Text Format"; nametemplate=%s.rtf; priority=3
 
 #
 ###

Reply via email to