The default MIME info (mailcap-mime-data) should use xdg-open

Bug #899591 reported by Ketil Malde on 2011-12-03
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
emacs23 (Ubuntu)
Undecided
Unassigned

Bug Description

When I try to view a PDF attachment in Gnus, Emacs will try to launch 'gv'. However, 'gv' is not installed, and I'd like to use 'evince' instead. This is remedied easily enough by adding the appropriate line (application/pdf; evince %s) in ~/.mailcap, but I think we should avoid a default, hardcoded mailcap-mime-data contents that doesn't match available applications.

I think using xdg-open would solve this.

Seen on oneiric.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: emacs23-common 23.3+1-1ubuntu4
ProcVersionSignature: Ubuntu 3.0.0-12.20-server 3.0.4
Uname: Linux 3.0.0-12-server x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Sat Dec 3 14:37:06 2011
InstallationMedia: Ubuntu-Server 11.04 "Natty Narwhal" - Release amd64 (20110426)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
SourcePackage: emacs23
UpgradeStatus: Upgraded to oneiric on 2011-10-15 (49 days ago)

Ketil Malde (ketil-ii) wrote :
description: updated
Ketil Malde (ketil-ii) wrote :

;; This seems to work for PDFs

(setq mailcap-mime-data
      '(
 ("application"
  (".*"
   (viewer . "xdg-open %s")
   ))))

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in emacs23 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers