From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: bug#14605: Problem with export an .org file to .pdf does not open pdf file Date: Tue, 17 Sep 2013 23:25:57 +0200 Message-ID: <20130917212557.GC16911@kuru.dyndns-at-home.com> References: <06D4DDE1-E3D1-470E-A887-66B78BD58302@gmail.com> <87ob7rri02.fsf@nowhere.org> <20130917135651.GC8200@kuru.dyndns-at-home.com> <20130917194250.GA16911@kuru.dyndns-at-home.com> <20130917202134.GB16911@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VM2mg-0003Rm-Ea for emacs-orgmode@gnu.org; Tue, 17 Sep 2013 17:26:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VM2mX-0005OM-Ml for emacs-orgmode@gnu.org; Tue, 17 Sep 2013 17:26:10 -0400 Received: from mail-ea0-x22f.google.com ([2a00:1450:4013:c01::22f]:58624) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VM2mX-0005OG-FK for emacs-orgmode@gnu.org; Tue, 17 Sep 2013 17:26:01 -0400 Received: by mail-ea0-f175.google.com with SMTP id m14so3007765eaj.6 for ; Tue, 17 Sep 2013 14:26:00 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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 Org mode Cc: Glyn Millington , Carsten Dominik Hi, On Tue, Sep 17, 2013 at 10:31:41PM +0200, Carsten Dominik wrote: > > On 17.9.2013, at 22:21, Suvayu Ali wrote: > > > > I can consistently repeat this outside of Org. I am trying with > > `dired-do-shell-command'. > > > > Steps: > > 1) (dired-do-shell-command "xdg-open" nil '("file.pdf")), the script > > runs and opens the pdf file. > > 2) (dired-do-shell-command "xdg-open &" nil '("file.pdf")), this runs > > the script too but the pdf is not opened. > > > > (I know the scripts run because I turned on debugging in the scripts) > > > > I'm assuming Org opens it asynchronously. What lisp function does Org > > use? > > Org used start-process-shell-command, and this happens in > org-open-file, which is called for links to a file in org-open-at-point. I need some feedback from users using different desktop environments. What DEs do you use, Matt, Glyn? I am on XFCE. For me xdg-open calls the internal function (defined in the script), open_xfce. Inside that function, exo-open is called. This is XFCE specific. When I replace exo-open with say, evince, and open a pdf file; start-process-shell-command works; with exo-open it doesn't. I can repeat this for html files with Firefox. I would like to know if other desktop environments has the same issue: kde-open (KDE) and gvfs-open (Gnome, Mate, etc). So to test, just open a directory with pdf/odt/html files in dired and run either of them asynchronously with &. Cheers, -- Suvayu Open source is the future. It sets us free.