The default MIME info (mailcap-mime-data) should use xdg-open
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
ProcVersionSign
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)
PackageArchitec
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)
;; This seems to work for PDFs
(setq mailcap-mime-data
'(
("application"
(".*"
(viewer . "xdg-open %s")
))))