Bug#280922: [moz-bonobo-list] Bug#280922: svg handling in mozilla-bonobo

Christian Glodt Christian Glodt <chris@mind.lu>, 280922@bugs.debian.org
Sat, 13 Nov 2004 16:48:02 +0100


On Fri, 2004-11-12 at 12:06 -0600, Stephen Waters wrote: 
> On Fri, 2004-11-12 at 17:53 +0100, Christian Glodt wrote:
> > Could you please send me the output of the following command:
> > 
> > mozilla-bonobo-viewer --list-mime-types | sed "s/;/\\n/g"
> 
> ---
> image/bmp:bmp:Windows bitmap image (using EOG Image Viewer)
> image/tiff:tif,tiff:TIFF image (using EOG Image Viewer)
> image/x-bmp:bmp:Windows bitmap image (using EOG Image Viewer)
> image/x-cmu-raster:ras:CMU raster image (using EOG Image)
> image/x-icb:icb:Truevision Targa image (using EOG Image Viewer)
> image/x-ico:ico:Windows icon image (using EOG Image Viewer)
> image/x-portable-anymap:pnm:PNM image (using EOG Image Viewer)
> image/x-portable-bitmap:pbm:PBM image (using EOG Image Viewer)
> image/x-portable-graymap:pgm:PGM image (using EOG Image Viewer)
> image/x-portable-pixmap:ppm:PPM image (using EOG Image Viewer)
> image/x-xpixmap:xpm:XPM image (using EOG Image Viewer)
> image/xpm:: (using EOG Image)
> image/svg::SVG art (using EOG Image)
> image/svg+xml:svg,svgz:SVG art (using EOG Image)
> x-directory/webdav::Web folder (using Nautilus file manager icon view)
> application/postscript:ps,eps:PostScript document (using GGV PostScript Document Control)
> application/x-abiword:abw:AbiWord document (using AbiWord Viewer)
> application/msword:doc:Microsoft Word document (using AbiWord Viewer)
> application/vnd.ms-word:: (using AbiWord Viewer)
> application/rtf:rtf:Rich text document (using AbiWord Viewer)
> application/wordperfect5.1:: (using AbiWord Viewer)
> application/x-applix-word:aw:Applixware Words document (using AbiWord Viewer)
> application/vnd.palm:: (using AbiWord Viewer)
> application/x-palm-database:pdb,prc:Palm OS database (using AbiWord Viewer)
> application/x-pdf:: (using GNOME PDF Viewer)
> application/pdf:pdf:PDF document (using GNOME PDF Viewer)
> x-directory/*:: (using EOG Image Collection Viewer)

Ok, so it looks like you have a version of EOG installed that still
provides the bonobo component. That component claims to support svg,
and that's why mozilla thinks the plugin supports svg.

The Right Thing(tm) to do would be to fix EOG. Either its svg-support
should be fixed, or image/svg[+xml] should be removed from its list of
supported formats.

But the point is really moot, since newer versions of EOG (since 2.8 I
believe?) don't have a bonobo component anymore. So, we need a temporary
fix for you, until Gnome 2.8 reaches unstable/testing.

Possibilities are:
a) Uninstall EOG if you don't need it.
b) Use gconf-editor to add "image/svg" and "image/svg+xml" to the
   "/apps/mozilla-bonobo/mime-types/ignore" GConf-key.
c) Edit the "/usr/lib/bonobo/servers/GNOME_EOG.server" file and remove
   from it those lines indicating that EOG supports svg.

Well, I'd go with b) if I were in your situation. Gnome 2.8 might
actually hit unstable relatively soon, and then the problem resolves
itself anyway. Whatever you choose to do, you'll need to do the
pluginreg.dat- dance again. If you try c), you'll also need to run
bonobo-slay after modifying the file.

Hope this helps,

Christian Glodt