From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: org-open-file with xdg-open not working? Date: Tue, 22 Apr 2014 17:30:42 +0800 Message-ID: <87fvl5ww1p.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcX7p-0007My-S9 for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 05:36:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcX7h-0003xW-U2 for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 05:36:25 -0400 Received: from plane.gmane.org ([80.91.229.3]:60816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcX7h-0003xR-NH for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 05:36:17 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WcX3H-0005Ey-4t for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 11:31:43 +0200 Received: from 123.115.131.62 ([123.115.131.62]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Apr 2014 11:31:43 +0200 Received: from eric by 123.115.131.62 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Apr 2014 11:31:43 +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 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? How are you solving it? Thanks! Eric