Gnus development mailing list
 help / color / mirror / Atom feed
* xdg-open
@ 2009-03-13 12:13 Katsumi Yamaoka
  2009-03-17  2:33 ` xdg-open Michael Baer
  0 siblings, 1 reply; 2+ messages in thread
From: Katsumi Yamaoka @ 2009-03-13 12:13 UTC (permalink / raw)
  To: ding

Hi,

On Fedora 10, Gnus passes all image/* MIME parts to xdg-open,
that is the bash script, for displaying externally because of
the /etc/mailcap entry:

image/*; /usr/bin/xdg-open %s

It works if using it manually like: xdg-open image.png
In that case, the eog command is used for displaying the image
file.  However, in Gnus it simply ends up immediately with no
displaying.  So far I don't know why it won't do.  Instead, I
added this one to the ~/.gnus.el file to remove xdg-open from
`mailcap-mime-data':

(mailcap-parse-mailcaps)

(dolist (major mailcap-mime-data)
  (dolist (minor (cdr major))
    (when (equal (cdr (assoc 'viewer (cdr minor)))
		 "/usr/bin/xdg-open %s")
      (delq minor major))))

It's not a good idea, though.

Regards,



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-17  2:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-13 12:13 xdg-open Katsumi Yamaoka
2009-03-17  2:33 ` xdg-open Michael Baer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).