emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-orgmode@gnu.org
Subject: Re: org-open-file with xdg-open not working?
Date: Tue, 22 Apr 2014 21:19:07 +0800	[thread overview]
Message-ID: <87a9bdv6wk.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 878uqxv7bj.fsf@gmail.com

Nick Dokos <ndokos@gmail.com> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> I'm trying to open files externally (via org-attach), with a mailcap
>> that funnels most everything to xdg-open. I notice that doing this with
>> org-open-file gives me:
>>
>> Running xdg-open /home/me/path/to/file.PDF...done
>>
>> But no actual open file.
>>
>> Doing a similar thing in gnus, with the `gnus-mime-view-part-externally'
>> command, gives me a similar message about xdg-open, but then the file
>> actually opens.
>>
>> Presumably that's because the gnus version (eventually
>> `mm-display-external') calls xdg-open with `call-process' and org does
>> it with `start-process-shell-command'. The first is synchronous, the
>> second asynchronous, and I do remember seeing something on one of these
>> lists about difficulties with xdg-open because the process returns
>> before the file actually opens, or *doesn't* return, or some similar
>> thing the details of which I'm forgetting.
>>
>> Have other people run into this difficulty?
>
> Yes.
>
>> How are you solving it?
>
> By not using xdg-open: I tend to add explicit entries in my .mailcap instead.

Well pooh... not the answer I was hoping for!

  reply	other threads:[~2014-04-22 13:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-22  9:30 org-open-file with xdg-open not working? Eric Abrahamsen
2014-04-22 13:10 ` Nick Dokos
2014-04-22 13:19   ` Eric Abrahamsen [this message]
2014-04-22 13:28 ` Nicolas Richard
2014-04-22 14:40   ` Eric Abrahamsen

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a9bdv6wk.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=emacs-orgmode@gnu.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).