* 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
* Re: xdg-open
2009-03-13 12:13 xdg-open Katsumi Yamaoka
@ 2009-03-17 2:33 ` Michael Baer
0 siblings, 0 replies; 2+ messages in thread
From: Michael Baer @ 2009-03-17 2:33 UTC (permalink / raw)
To: Katsumi Yamaoka; +Cc: ding
>>>>> On Fri, 13 Mar 2009 21:13:41 +0900, Katsumi Yamaoka <yamaoka@jpl.org> said:
Katsumi> Hi, On Fedora 10, Gnus passes all image/* MIME parts to
Katsumi> xdg-open, that is the bash script, for displaying
Katsumi> externally because of the /etc/mailcap entry:
Katsumi> image/*; /usr/bin/xdg-open %s
Katsumi> It works if using it manually like: xdg-open image.png
Katsumi> In that case, the eog command is used for displaying
Katsumi> the image file. However, in Gnus it simply ends up
Katsumi> immediately with no displaying. So far I don't know
Katsumi> why it won't do. Instead, I added this one to the
Katsumi> ~/.gnus.el file to remove xdg-open from
Katsumi> `mailcap-mime-data':
I had this problem under gnome (although not kde). I believe it
dies because the child process, gnome-open, dies when the parent
process, xdg-open, finishes. I did a hacky remedy of adding
'setsid' before gnome-open in the xdg-open script. Since it works
okay from the command line though (and it does for me as well),
there may be something changeable within emacs/gnus that could fix
it.
-Mike
Katsumi> (mailcap-parse-mailcaps)
Katsumi> (dolist (major mailcap-mime-data)
Katsumi> (dolist (minor (cdr major))
Katsumi> (when (equal (cdr (assoc 'viewer (cdr minor)))
Katsumi> "/usr/bin/xdg-open %s")
Katsumi> (delq minor major))))
Katsumi> It's not a good idea, though.
Katsumi> Regards,
--
Michael Baer
baerm@mikesoffice.com
^ 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).