mailcap entry for application/pdf needs quote marks

Bug #1494496 reported by Steven Lucy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mime-support (Ubuntu)
New
Undecided
Unassigned

Bug Description

The entry for application/pdf in my /etc/mailcap reads as follows:

application/pdf; evince '%s'; test=test -n "$DISPLAY"; nametemplate=%s.pdf

If I try to open an attachment called "two words.pdf" (with a space in the name) in my mail client (mutt), I get two evince windows with errors. One says "Unable to open document “file:///home/slucy/two” and the other says "Unable to open document “file:///home/slucy/words.pdf”".

If I change the mailcap line to include single quotes around the %s.pdf as below, mutt can successfully open a pdf attachment with a space in the name:

application/pdf; evince '%s'; test=test -n "$DISPLAY"; nametemplate='%s.pdf'

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: mime-support 3.54ubuntu1.1
ProcVersionSignature: Ubuntu 3.13.0-62.102-generic 3.13.11-ckt24
Uname: Linux 3.13.0-62-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.12
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Sep 10 16:24:08 2015
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-07-05 (797 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
PackageArchitecture: all
SourcePackage: mime-support
UpgradeStatus: Upgraded to trusty on 2014-04-24 (504 days ago)

Revision history for this message
Steven Lucy (slucy) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.