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: Thu, 19 Sep 2013 16:25:48 +0200 Message-ID: <20130919142548.GD16381@kuru.dyndns-at-home.com> References: <20130917194250.GA16911@kuru.dyndns-at-home.com> <20130917202134.GB16911@kuru.dyndns-at-home.com> <20130917212557.GC16911@kuru.dyndns-at-home.com> <87eh8m4hx6.fsf@ucl.ac.uk> <20130918121429.GA2905@kuru.dyndns-at-home.com> <7618A639-D354-436C-A7D4-A0030F9C9663@gmail.com> <8761txig54.fsf@gmail.com> <20130919063652.GA443@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]:45138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMfB5-0003hc-JI for emacs-orgmode@gnu.org; Thu, 19 Sep 2013 10:26:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMfB4-0006Nj-0U for emacs-orgmode@gnu.org; Thu, 19 Sep 2013 10:25:55 -0400 Received: from mail-ea0-x236.google.com ([2a00:1450:4013:c01::236]:40291) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMfB3-0006NF-8d for emacs-orgmode@gnu.org; Thu, 19 Sep 2013 10:25:53 -0400 Received: by mail-ea0-f182.google.com with SMTP id o10so4252632eaj.13 for ; Thu, 19 Sep 2013 07:25:51 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130919063652.GA443@kuru.dyndns-at-home.com> 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: Carsten Dominik Cc: Nick Dokos , emacs-orgmode@gnu.org On Thu, Sep 19, 2013 at 08:36:52AM +0200, Suvayu Ali wrote: > On Thu, Sep 19, 2013 at 08:24:51AM +0200, Carsten Dominik wrote: > > > > On 19.9.2013, at 06:34, Nick Dokos wrote: > > > > > Carsten Dominik writes: > > > > > >> On 18.9.2013, at 14:14, Suvayu Ali wrote: > > >> ... > > >>> I think that is expected. The bug is in the desktop specific open > > >>> commands. Since you use none, generic open is used. That is simply a > > >>> shell function, and does the right thing. > > >> > > >> Is there a generic open command in Linux? Why don't we use this instead? > > >> > > > > > > Not really. There is a shell function called open_generic inside of > > > xdg-open. I believe that's what Suvayu was referring to. But there is > > > no clean way of calling it, short of pulling it out of the xdg-open > > > script into a new script: as a general solution, that's hopeless. > > > > All right. Too bad. Thank you. > > Nick said it accurately. It is part of the xdg-open script. I have some good news (sort of). We can force generic open by calling xdg-open like this[1]: DE=generic xdg-open /path/to/file I tested this with (start-process-shell-command "DE=generic xdg-open test.html" nil "DE=generic xdg-open test.html") and it works well. Do you think this is acceptable? Cheers, Footnotes: [1] -- Suvayu Open source is the future. It sets us free.