Public bug reported:

After installing imagemagic is there tid problem:

in  /usr/lib/mime/packages/imagemagic are such lines:

image/png; display png:'%s'; test=test -n "$DISPLAY"; priority=2

after update-mime it results in lines in /etc/mailcap:

image/png; display 'png:'%s''; test=test -n "$DISPLAY"

You can see - the problem is in nesting of ---- ' ----

$ see --debug 1.png
 - parsing parameter "1.png"
 - Reading mime.types file "/etc/mime.types"...
 - extension "png" maps to mime-type "image/png"
 - Reading mailcap file "/etc/mailcap"...
Processing file "1.png" of type "image/png" (encoding=none)...
 - checking mailcap entry "image/png; display 'png:'%s''; test=test -n 
"$DISPLAY""
 - program to execute: display 'png:'%s''
 - running test: test -n "$DISPLAY"  (result=0=true)
 - executing: display 'png:'1.png'
sh: 1: Syntax error: Unterminated quoted string
Warning: program returned non-zero exit code #2
$

and maybe also  last --- ' --- is missing (?).

I had try to modify /usr/lib/mime/packages/imagemagic to image/png; display 
png:"%s"; test=test -n "$DISPLAY"; priority=2
but I just get another error:

$ see --debug 1.png
 - parsing parameter "1.png"
 - Reading mime.types file "/etc/mime.types"...
 - extension "png" maps to mime-type "image/png"
 - Reading mailcap file "/etc/mailcap"...
Processing file "1.png" of type "image/png" (encoding=none)...
 - checking mailcap entry "image/png; display 'png:"%s"'; test=test -n 
"$DISPLAY""
 - program to execute: display 'png:"%s"'
 - running test: test -n "$DISPLAY"  (result=0=true)
 - executing: display 'png:"1.png"'
display: unable to open image `"1.png"':  @ error/blob.c/OpenBlob/2587.
display: unable to open file `"1.png"' @ error/png.c/ReadPNGImage/3234.
$ 

--kapetr

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: mime-support 3.51-1ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-21.34-generic 3.2.13
Uname: Linux 3.2.0-21-generic x86_64
ApportVersion: 2.0-0ubuntu3
Architecture: amd64
Date: Wed Apr  4 10:11:18 2012
Dependencies:
 
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120401)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=cs_CZ.UTF-8
 SHELL=/bin/bash
SourcePackage: mime-support
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: mime-support (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug precise

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/973173

Title:
  /etc/mailcap syntax problem

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mime-support/+bug/973173/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to