From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-open-file with xdg-open not working? Date: Tue, 22 Apr 2014 09:10:08 -0400 Message-ID: <878uqxv7bj.fsf@gmail.com> References: <87fvl5ww1p.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcaT5-0002Ao-Ln for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 09:10:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcaSz-0005tP-7u for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 09:10:35 -0400 Received: from plane.gmane.org ([80.91.229.3]:35408) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcaSy-0005tH-VD for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 09:10:29 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WcaSu-0000zH-2s for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 15:10:24 +0200 Received: from pool-98-110-160-12.bstnma.fios.verizon.net ([98.110.160.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Apr 2014 15:10:24 +0200 Received: from ndokos by pool-98-110-160-12.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Apr 2014 15:10:24 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Eric Abrahamsen 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. -- Nick