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, 3 Sep 2013 10:44:23 +0200 Message-ID: <20130903084423.GD22460@kuru.dyndns-at-home.com> References: <51C979DF.9080106@redhat.com> <520A312B.5080003@redhat.com> <6CD2860F-6518-4BC6-B431-507BB088B588@gmail.com> <8738pnlj09.fsf@gmail.com> <81237114-C902-40D8-95F9-70AA2055C4D3@gmail.com> <20130902094701.GI2828@kuru.dyndns-at-home.com> <1B84ED41-BCE5-46AE-BBFB-92D656CD373E__38750.8492371582$1378116581$gmane$org@gmail.com> <8738pnw4e5.fsf_-_@Rainer.invalid> <4E229EE1-5DE1-48B5-B5C4-DCFB41A1686B@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGmDz-00070Z-17 for emacs-orgmode@gnu.org; Tue, 03 Sep 2013 04:44:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGmDs-0004vi-8k for emacs-orgmode@gnu.org; Tue, 03 Sep 2013 04:44:34 -0400 Received: from mail-ee0-x22e.google.com ([2a00:1450:4013:c00::22e]:43780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGmDs-0004vY-1r for emacs-orgmode@gnu.org; Tue, 03 Sep 2013 04:44:28 -0400 Received: by mail-ee0-f46.google.com with SMTP id c13so2819828eek.5 for ; Tue, 03 Sep 2013 01:44:27 -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: Carsten Dominik Cc: Achim Gratz , emacs-orgmode@gnu.org On Tue, Sep 03, 2013 at 09:52:26AM +0200, Carsten Dominik wrote: > > On Sep 2, 2013, at 10:54 PM, Carsten Dominik wrote: > > > > > On 2.9.2013, at 18:54, Achim Gratz wrote: > > > >> Carsten Dominik writes: > >>> OK, we now use xdg-open when available on a Linux system. > >> > >> The availability of xdg-open has nothing to do with whether or not you > >> are running Emacs on a Linux system. Indeed, even on a system where it > >> is available, it won't do anything useful if you're running from a > >> console. While I think it's a good default for someone using a desktop > >> that conforms to XDG standards, there should be a check if in fact Emacs > >> is running on such a desktop. > > > > Hi Achim, > > > > thanks for this input. THis makes it more complicated. Do you know how I would test this? I do know about the variable window-system, but that will also return nil when Emacs is running in an xterm, even though xdg-open would be working in this case. > > On the other hand, I guess mailcap would suffer from the same problems with console and other non-desktop terminals? Indeed! I tried to breakdown the cases for emacs running in the terminal in my other response[1]. My conclusion was unless someone is running in a true (graphicsless) terminal, or a remote session without X forwarding, it should work. And for these two cases, the user is aware there is no GUI available, so it does not make sense for the user to "export and open". Hope this helps, Footnotes: [1] -- Suvayu Open source is the future. It sets us free.