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

Bug #899591 reported by Ketil Malde
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
emacs23 (Ubuntu)
Confirmed
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)

Revision history for this message
Ketil Malde (ketil-ii) wrote :
description: updated
Revision history for this message
Ketil Malde (ketil-ii) wrote :

;; This seems to work for PDFs

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

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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