From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: org-open-file with xdg-open not working? Date: Tue, 22 Apr 2014 21:19:07 +0800 Message-ID: <87a9bdv6wk.fsf@ericabrahamsen.net> References: <87fvl5ww1p.fsf@ericabrahamsen.net> <878uqxv7bj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcaYl-00076w-CH for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 09:16:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcaYf-0007ZA-6i for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 09:16:27 -0400 Received: from plane.gmane.org ([80.91.229.3]:52779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcaYf-0007YI-0F for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 09:16:21 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WcaYT-0005dr-31 for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 15:16:09 +0200 Received: from 221.218.162.46 ([221.218.162.46]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Apr 2014 15:16:09 +0200 Received: from eric by 221.218.162.46 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Apr 2014 15:16:09 +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 Nick Dokos writes: > 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. Well pooh... not the answer I was hoping for!