From: Michael Baer <baerm@mikesoffice.com>
To: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: ding@gnus.org
Subject: Re: xdg-open
Date: Mon, 16 Mar 2009 19:33:32 -0700 [thread overview]
Message-ID: <m3zlfknair.fsf@mikesoffice.com> (raw)
In-Reply-To: <b4m1vt1mxhm.fsf@jpl.org> (Katsumi Yamaoka's message of "Fri\, 13 Mar 2009 21\:13\:41 +0900")
>>>>> 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
prev parent reply other threads:[~2009-03-17 2:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-13 12:13 xdg-open Katsumi Yamaoka
2009-03-17 2:33 ` Michael Baer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3zlfknair.fsf@mikesoffice.com \
--to=baerm@mikesoffice.com \
--cc=ding@gnus.org \
--cc=yamaoka@jpl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).