From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: bug#14605: Problem with export an .org file to .pdf does not open pdf file
Date: Tue, 3 Sep 2013 01:27:39 +0200 [thread overview]
Message-ID: <20130902232739.GO2828@kuru.dyndns-at-home.com> (raw)
In-Reply-To: <4E229EE1-5DE1-48B5-B5C4-DCFB41A1686B@gmail.com>
Hi Achim, Carsten,
On Mon, Sep 02, 2013 at 10:54:13PM +0200, Carsten Dominik wrote:
>
> On 2.9.2013, at 18:54, Achim Gratz <Stromeko@nexgo.de> 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.
>
> 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.
I think there are four cases of running from a console,
1. a true terminal (the one you get with Ctrl+Alt-Fn, or in runlevel 3)
2. a remote console without X forwarding
3. a remote console with X forwarding
4. a virtual terminal (terminal emulator in a graphical desktop)
Now xdg-open will not work for (1-2) (for different reasons), but will
work for (3-4). I think it is reasonable to expect if someone chooses
"export and open", they are on a graphical desktop and not on (1-2). As
for (3), I think even in that case most people will choose to just
export, and open in some other way (none of us like X forwarding do we?
;)).
As for desktop conformance, Gnome, KDE, XFCE (and by induction LXDE)
conforms. I think the key is what happens when it does not: xdg-open
fallsback to its own settings. Quoting the Archlinux wiki summary:
Inside a desktop environment (e.g. GNOME, KDE, Xfce, etc.), xdg-open
simply passes the arguments to that desktop environment's file-opener
application (gvfs-open, kde-open, or exo-open, respectively), which
means that the associations are left up to the desktop
environment. When no desktop environment is detected (for example when
one runs a standalone window manager, e.g. Openbox), xdg-open will use
its own configuration files.
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Given this fallback, I don't think there is much to worry about. If it
is there, and the user is on a graphical desktop (3-4), it will work.
If it is absent, we still have mailcap. Nothing to lose here.
Hope this helps,
--
Suvayu
Open source is the future. It sets us free.
next prev parent reply other threads:[~2013-09-02 23:27 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <51B9C912.4050100@redhat.com>
2013-06-25 11:07 ` bug#14605: Problem with export an .org file to .pdf does not open pdf file Petr Hracek
[not found] ` <51C979DF.9080106@redhat.com>
2013-08-13 13:14 ` Petr Hracek
[not found] ` <520A312B.5080003@redhat.com>
2013-08-17 12:31 ` Bastien
2013-09-02 5:35 ` bug#14605: " Carsten Dominik
[not found] ` <6CD2860F-6518-4BC6-B431-507BB088B588@gmail.com>
2013-09-02 8:34 ` Jambunathan K
[not found] ` <8738pnlj09.fsf@gmail.com>
2013-09-02 8:44 ` Carsten Dominik
[not found] ` <81237114-C902-40D8-95F9-70AA2055C4D3@gmail.com>
2013-09-02 9:40 ` Jambunathan K
2013-09-02 9:47 ` Suvayu Ali
2013-09-02 9:55 ` bug#14605: bug#14605: " Carsten Dominik
2013-09-02 10:08 ` Carsten Dominik
2013-09-02 16:54 ` Achim Gratz
2013-09-02 19:05 ` Jambunathan K
2013-09-03 17:14 ` Achim Gratz
2013-09-02 20:54 ` Carsten Dominik
2013-09-02 23:27 ` Suvayu Ali [this message]
2013-09-03 7:52 ` Carsten Dominik
2013-09-03 8:44 ` Suvayu Ali
2013-09-03 9:12 ` Achim Gratz
2013-09-03 9:57 ` Carsten Dominik
2013-09-17 4:42 ` Matt Price
2013-09-17 6:01 ` Matt Price
2013-09-17 7:16 ` Carsten Dominik
2013-09-17 8:04 ` Glyn Millington
2013-09-17 13:56 ` Suvayu Ali
2013-09-17 19:34 ` Carsten Dominik
2013-09-17 19:42 ` Suvayu Ali
2013-09-17 19:53 ` Carsten Dominik
2013-09-17 20:21 ` Suvayu Ali
2013-09-17 20:31 ` Carsten Dominik
2013-09-17 21:25 ` Suvayu Ali
2013-09-17 21:34 ` Glyn Millington
2013-09-17 22:10 ` Matt Price
2013-09-18 6:51 ` Suvayu Ali
2013-09-18 6:53 ` Carsten Dominik
2013-09-18 8:28 ` Glyn Millington
2013-09-18 9:07 ` Eric S Fraga
2013-09-18 12:14 ` Suvayu Ali
2013-09-19 2:25 ` Carsten Dominik
2013-09-19 4:34 ` Nick Dokos
2013-09-19 6:24 ` Carsten Dominik
2013-09-19 6:36 ` Suvayu Ali
2013-09-19 14:25 ` Suvayu Ali
2013-09-20 10:49 ` Carsten Dominik
2013-09-20 11:07 ` Suvayu Ali
2013-09-20 12:29 ` Carsten Dominik
2013-09-20 13:14 ` Suvayu Ali
[not found] ` <CAN_Dec9q-DOpDvkDtvv85gHUQQxZ1NYWZ-OTBcYufrRXr4UCRQ@mail.gmail.com>
2013-09-20 22:35 ` Matt Price
2013-09-22 8:49 ` Suvayu Ali
2013-09-22 9:19 ` Carsten Dominik
2013-09-17 21:25 ` Glyn Millington
2013-09-17 22:11 ` Matt Price
2013-09-18 5:21 ` Glyn Millington
2013-09-17 6:34 ` Matt Price
[not found] ` <1B84ED41-BCE5-46AE-BBFB-92D656CD373E@gmail.com>
2013-09-02 10:20 ` bug#14605: bug#14605: bug#14605: " Jambunathan K
2013-09-02 16:22 ` bug#14605: " Torsten Wagner
2013-09-03 4:59 ` Jambunathan K
[not found] ` <20130902094701.GI2828__30307.5940967121$1378115340$gmane$org@kuru.dyndns-at-home.com>
2013-09-02 10:12 ` bug#14605: bug#14605: " Jambunathan K
2013-09-02 10:12 ` Jambunathan K
[not found] ` <87li3fjzw8.fsf@gmail.com>
2013-09-03 13:35 ` Suvayu Ali
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130902232739.GO2828@kuru.dyndns-at-home.com \
--to=fatkasuvayu+linux@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).